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]

Link to comment
Share on other sites

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

 

Link to comment
Share on other sites

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

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.