setacity Posted September 3, 2008 Share Posted September 3, 2008 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] Quote Link to comment https://forums.phpfreaks.com/topic/122591-apache-only-serves-pages-to-localhost-wont-serve-externally/ Share on other sites More sharing options...
trq Posted September 3, 2008 Share Posted September 3, 2008 It is likely that your firewall is blocking network traffic. What is the output of.... iptables -L (run as root) Quote Link to comment https://forums.phpfreaks.com/topic/122591-apache-only-serves-pages-to-localhost-wont-serve-externally/#findComment-633171 Share on other sites More sharing options...
setacity Posted September 3, 2008 Author Share Posted September 3, 2008 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 Quote Link to comment https://forums.phpfreaks.com/topic/122591-apache-only-serves-pages-to-localhost-wont-serve-externally/#findComment-633173 Share on other sites More sharing options...
setacity Posted September 3, 2008 Author Share Posted September 3, 2008 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 Quote Link to comment https://forums.phpfreaks.com/topic/122591-apache-only-serves-pages-to-localhost-wont-serve-externally/#findComment-633180 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.