Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have Apache 2.2.3 installed on this server, and when I try loading its webpage, it does not load. I just get a loading sign that it is trying to connect but no connection has been made.

I check the conf file and it is listening on all ips on port 80. It also has a proper vhost file as well as has a simple text html file for the index display "Test".

Some Additional Information:

It neither works for the domain or the ip address or even localhost from the server. I did a wget of localhost and got nothing

[root@server conf]# netstat -tulpn | grep ':80'
tcp        0      0 :::80                       :::*                        LISTEN      6256/httpd   

My Apache conf:
Ip Tables Config:

share|improve this question
Which you use to browse: domain or IP? Is there any firewall? Post the main and virtual host configuration file? – quanta Sep 29 '11 at 7:06
Could you append your question with the output of netstat -tulpn | grep ':80' and iptables --list -n | grep '80' – Kenny Rasschaert Sep 29 '11 at 7:21
Here are the replies: tcp 0 0 :::80 :::* LISTEN 6256/httpd – John Garretson Sep 29 '11 at 7:44
There was nothing for the ip tables grep. my apache config is here: – John Garretson Sep 29 '11 at 7:45
it neither works for the domain or the ip address or even localhost from the server. i did a wget of localhost and got nothing – John Garretson Sep 29 '11 at 7:47
up vote 1 down vote accepted

It looks like your firewall needs to allow access on port 80 try

/sbin/iptables -I RH-Firewall-1-INPUT -p tcp -m tcp --dport 80 -j ACCEPT

and see if that works. If it does then save your firewall configuration with

/sbin/service iptables save
share|improve this answer
Thanks this did the trick! – John Garretson Sep 30 '11 at 20:51

1) What is the output of your error_log after you restart Apache ?

2) Can you do telnet localhost 80 ? If so, try to do GET /<enter>

3) It is surprising that iptables block requests from localhost as well

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.