[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 324
  • Last Modified:

installed apache; configure myCompany.com

I have installed apache 4.0 on win 2000 machine. I am new to this. What do I have to do so I can access my website or webpage over the internet. I can access it by localhost. What do I need to do. I guess I would need to change my localhost to another name like panarella.com. is this right. i know my isp ip address. also I have cable modem. does this pose a problem because I do not have a static ip address? please help..
0
npanarella
Asked:
npanarella
  • 5
  • 5
  • 3
  • +3
2 Solutions
 
mhonomichlCommented:
The easyest way to do it with a name is to go to www.dyndns.org and use them as a name server.  Otherwise you should be able to get to it via the IP address
0
 
samriCommented:
any dynamic DNS solution would work.  The ServerName directive in httpd.conf doesn't matter much, unless you are into doing some redirection and virtual hosting.

btw; What is Apache 4.0, Do we have 4.0 yet.
0
 
lexxwernCommented:
yeah.
Apache 2 is still under beta. 4?
0
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 
lexxwernCommented:
but deerfield.com has a good free service of dns pointing.
tzo is another such service.

http://deerfield.com/
http://www.tzo.com/
regards.
0
 
lexxwernCommented:
or is it deerfield.net
http://deerfield.net/
stop.
0
 
npanarellaAuthor Commented:
Still no luck accessing my page via the internet..
I started apache tomcat server and was able to access my webpage with the following url:
http://localhost:8080/index.html

But when I logged onto the internet and tried to connect to the url; this time with my ip address inplace of localhost.
http://www.31.555.57.227:8080/index.html

I got could not display page?? any thoughts?? Do I have to set any configuration files to point to my ip address instead of local host. someone mentioned httpd.config but I do not have this file on my PC. I have a server.config file? Please help.

Thanks.
0
 
mhonomichlCommented:
all you should need is the IP address:

31.55.57.227:8080

Depending on the browser that you are using, you may want to include the http://

http://31.55.57.227:8080

mark
0
 
samriCommented:
Hmm.. it's a Tomcat.  I'll have to pass this.

Try the propose action by mhonomichl, it you still can't access to you Tomcat (on port 8080), can you do a simple "telnet <your-server-ip-address> 8080".  Type in anything, and hit enter twice.  If you get connection refused.  That means, either Your tomcat is only listening to Loopback address (127.0.0.1), and not the ethernet (or whatever interface is used to connect to the LAN (and to the Internet).

In fact what you can try it to browse on the local machine (the server itself), and instead of using http://localhost:8080/, try http://theip.address:8080/

If this works, then try the "telnet" test.  If it still fails.  Check maybe you firewall/router is blocking any incoming request, or doing any kind of port filtering.

Btw, 31.55.57.227 is just an axample IP, and you actuall IP is different.  Right?.  It that is the real IP, It doesn;t look like a public IP (might be reserverd -- I might be wrong).

good luck
0
 
npanarellaAuthor Commented:
31.55.57.227 is not my real Ip address, just used it as an example. I tried to telnet the ip address but got could no open a connection to host. connect failed.  are you sure I do not need to change or add the ip address to a conviguration file such as server.config??? I tried to connect with the url format mhomuchi said, but still no luck
0
 
mhonomichlCommented:
If you have the configuration set to listen only to localhost, this may be causing problems.  Look for it in your configuration file and change localhost to the IP address.
0
 
samriCommented:
Addition to mhonomichl's cooment;

Check you Listen, and BindAddress directive.  I believe that by default, Apache will be listening to all available ports (all IP address), but bear in mind that you have a dynamic IP address.  Perhaps the first thing you might want to do is to check you config, on whether you happens to do any customization, as to bind to specific ip address.

Next is, after you have obtained the IP address, try stopping apache, and restart.  Can use command line; NET STOP APACHE, NET START APACHE (unfortunately, there is not NET RESTART APACHE).


# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, in addition to the default. See also the <VirtualHost>
# directive.
#
#Listen 3000
#Listen 12.34.56.78:80

#
# BindAddress: You can support virtual hosts with this option. This directive
# is used to tell the server which IP address to listen to. It can either
# contain "*", an IP address, or a fully qualified Internet domain name.
# See also the <VirtualHost> and Listen directives.
#
BindAddress *
0
 
npanarellaAuthor Commented:
I got it to work under my ip address now. can i register the same ip adress with more than one domain name. for example can i have webconnection.com and a entirely new domain name(new website) called freepizza.com registered to the same ip address.???
0
 
mhonomichlCommented:
You can have as many registrations for a IP address that you want.
0
 
gizmolaCommented:
Yes you can have multiple domains answering on the same IP, but you need to insert the appropriate virtual server configuration directives to handle this.  FYI, this is done via the host header name provisions in the http 1.1 rfc.  Ok, so here's what you need in your httpd.conf

#You need this statement, with the appropriate settings #for your server:
NameVirtualHost 208.57.76.141:80

#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost #container.  I've even included a <Location directive to #show how you might do a secure area with realms
#
<VirtualHost 208.57.76.141>
    ServerName kw.clan-sn.org
    ServerAdmin webmaster@gizmola.com
    DocumentRoot /sites/kw
    ErrorLog logs/kw-error_log
    CustomLog logs/kw-access_log combined
    <location /restricted>
        AuthName "kw.clan-sn.org"
        AuthType Basic
        AuthUserFile /sites/kw/restricted/usrfile
        require valid-user
    </location>
</VirtualHost>
0
 
npanarellaAuthor Commented:
One more question. I went thru deerfield.com to register my ip address to a new domain. I then replaced the ip adress with the new domain name in the tomcat servlet.config file. Restarted tomcat. the only thing now is I can only access my website with the following URL
http://www.kingpin.27south.com:8080/index.html

ofcourse I would like to enter the above url minus the :8080 port number but if I do then the page will not display. any thoughts.  do I have to configure the tomcat server to listen on a default port number or something

0
 
npanarellaAuthor Commented:
I also do not have a httpd.conf file. I have a server.config file.
0
 
mhonomichlCommented:
in your config file, you should have something that sets the port to 8080.  You should only need to change this to 80

Mark
0
 
periwinkleCommented:
No comment has been added lately, so it's time to clean up this TA.

I will leave a recommendation in the Cleanup topic area with the following recommendation for this question:

Split between mhonomichl and samri

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

periwinkle
EE Cleanup Volunteer
0

Featured Post

 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

  • 5
  • 5
  • 3
  • +3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now