Link to home
Start Free TrialLog in
Avatar of npanarella
npanarella

asked on

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..
ASKER CERTIFIED SOLUTION
Avatar of mhonomichl
mhonomichl

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.
yeah.
Apache 2 is still under beta. 4?
but deerfield.com has a good free service of dns pointing.
tzo is another such service.

http://deerfield.com/
http://www.tzo.com/
regards.
or is it deerfield.net
http://deerfield.net/
stop.
Avatar of npanarella
npanarella

ASKER

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.
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
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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
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.
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 *
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.???
You can have as many registrations for a IP address that you want.
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>
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

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

Mark
Avatar of periwinkle
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