I have been messing around with Apache recently but I am really stuck on how to get apache to go beyond my computer. I installed and started apache and when I went to localhost I got the message "It works!". The only problem is the computer with Apache on it is the only one able to display that message. Any other computer will not load the page. Is there a configuration option that needs to be set that tells Apache to respond to my global IP?

01-19-2009

CornedBee

Look for the "Listen" directive, it tells you the IPs to which Apache binds. If it only binds to localhost (127.0.0.1) only local users can access the server.
Also, make sure that you don't have a firewall blocking port 80 on the computer.

01-19-2009

lruc

Quote:

Originally Posted by CornedBee

Look for the "Listen" directive, it tells you the IPs to which Apache binds. If it only binds to localhost (127.0.0.1) only local users can access the server.
Also, make sure that you don't have a firewall blocking port 80 on the computer.

Thanks! Ill post back the results in a minute(although I expect it to work).

01-19-2009

lruc

I didn't even find a Listen directive in the config. Am I looking in the right file(/etc/apache2/apache2.conf)? Most tutorials say the main configuration file is httpd.conf, but that was empty and the next best candidate seemed to be apache2.conf.

edit: I found it. It was in ports.conf and the Listen directive was set for port 80 and not just localhost so that can't be the problem.

01-19-2009

rags_to_riches

Firewalls, DNS, routers...any of these could be interfering with the client connection to the webserver. What OS is Apache running on?

01-19-2009

lruc

Ubuntu(not server edition). Is it better to run directly from modem instead of using a router? How do you tell if a firewall is running?