PDA

View Full Version : Apache config



lruc
01-19-2009, 08:23 AM
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?

CornedBee
01-19-2009, 08:39 AM
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.

lruc
01-19-2009, 08:44 AM
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).

lruc
01-19-2009, 09:42 AM
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.

rags_to_riches
01-19-2009, 10:24 AM
Firewalls, DNS, routers...any of these could be interfering with the client connection to the webserver. What OS is Apache running on?

lruc
01-19-2009, 10:31 AM
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?

lruc
01-20-2009, 05:04 PM
Ok I changed my router configuration to allow Apache. Please verify that it works please by clicking here.
(http://68.41.175.89/)
Thanks to everybody for all the help!

cyberfish
01-20-2009, 10:37 PM
works here.

vart
01-21-2009, 01:17 AM
root and Pnk Floyd pages - rest is not found

lruc
01-21-2009, 02:12 PM
root and Pnk Floyd pages - rest is not found

Sorry forgot to mention the expected output. I will be using it to host my music collection across some computers. What did you mean about the root part?

Akkernight
01-21-2009, 02:19 PM
A link to pink floyd stuff, I guess songs, but then I go deeper it ends empty :P and I've never got apache to work, it's a pain in the ass! xD

lruc
01-23-2009, 02:23 PM
A link to pink floyd stuff, I guess songs, but then I go deeper it ends empty :P and I've never got apache to work, it's a pain in the ass! xD

Well, somebody is not a fan. Phhhh. Songs. One of the band members would have killed you if they heard you say that.

rags_to_riches
01-23-2009, 04:41 PM
One of the band members would have killed you if they heard you say that.

Sadly, if it was Richard Wright, he needn't worry...