Jump to content

Apache only serves pages to localhost; won't serve externally.


setacity

Recommended Posts

I have Apache2 installed on CentOS.

Using the Lynx text-based web-browser on my server, I can see that my webserver is working. (either by IP address or "localhost" or by domain name).

When I try to access the server from another computer (via IP address or domain name), the browser times out saying "taking too long to respond" in Firefox.  That said, I can ping just fine and SSH access is fine.

 

I have attached my httpd.conf file.

 

Thank you in advance if anyone has any thoughts!

 

[attachment deleted by admin]

iptables -L didn't work, so I executed iptables status.  Here is the output:

 

Table: filter

Chain INPUT (policy ACCEPT)

num  target    prot opt source              destination       

1    RH-Firewall-1-INPUT  all  --  0.0.0.0/0            0.0.0.0/0         

 

Chain FORWARD (policy ACCEPT)

num  target    prot opt source              destination       

1    RH-Firewall-1-INPUT  all  --  0.0.0.0/0            0.0.0.0/0         

 

Chain OUTPUT (policy ACCEPT)

num  target    prot opt source              destination       

 

Chain RH-Firewall-1-INPUT (2 references)

num  target    prot opt source              destination       

1    ACCEPT    all  --  0.0.0.0/0            0.0.0.0/0         

2    ACCEPT    icmp --  0.0.0.0/0            0.0.0.0/0          icmp type 255

3    ACCEPT    esp  --  0.0.0.0/0            0.0.0.0/0         

4    ACCEPT    ah  --  0.0.0.0/0            0.0.0.0/0         

5    ACCEPT    udp  --  0.0.0.0/0            224.0.0.251        udp dpt:5353

6    ACCEPT    udp  --  0.0.0.0/0            0.0.0.0/0          udp dpt:631

7    ACCEPT    tcp  --  0.0.0.0/0            0.0.0.0/0          tcp dpt:631

8    ACCEPT    all  --  0.0.0.0/0            0.0.0.0/0          state RELATED,ESTABLISHED

9    ACCEPT    tcp  --  0.0.0.0/0            0.0.0.0/0          state NEW tcp dpt:22

10  REJECT    all  --  0.0.0.0/0            0.0.0.0/0          reject-with icmp-host-prohibited

11  ACCEPT    tcp  --  0.0.0.0/0            0.0.0.0/0          state NEW tcp dpt:80

 

More info:

 

hostname run as root yields:

hydrogen

 

/etc/hosts contains:

# Do not remove the following line, or various programs

# that require network functionality will fail.

127.0.0.1      hydrogen localhost

#::1            localhost6.localdomain6 localhost6

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.