I booted the CentOS server into rackspace and performed yum install httpd 'd. Then services httpd start . So, just barebones.
I can access its IP address remotely via ssh (22) without problems, so there is no problem with DNS or anything (I think ...), but when I try to connect to port 80 (through a browser or something else) I get the connection refused.
However, from localhost I can use telnet (80) or even lynx on myself and maintain it without any problems. Outside (my home, my school, local cafe, etc.), Telnet connects to 22, but not 80.
I use netstat -tulpn (<- I'm not going to lie, I don't understand the -tulpn part, but what the internet told me to do ...) and see
tcp 0 0 :::80 :::* LISTEN -
it seems to me. httpd.conf says Listen 80 .
I have services httpd restart many times.
Honestly, I have no idea what to do. There is no way for rackspace to have a firewall for incoming 80th port requests. I feel like I’m missing something stupid, but I already loaded the barebones server twice and performed an absolute minimum to get this functioning, thinking that I messed up everything, but it didn’t work.
Any help is much appreciated! (And sorry for the long branch ...)
Edit I was asked to publish the output of iptables -L . So here it is:
Chain INPUT (policy ACCEPT) target prot opt source destination ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED ACCEPT icmp -- anywhere anywhere ACCEPT all -- anywhere anywhere ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:ssh REJECT all -- anywhere anywhere reject-with icmp-host-prohibited Chain FORWARD (policy ACCEPT) target prot opt source destination REJECT all -- anywhere anywhere reject-with icmp-host-prohibited Chain OUTPUT (policy ACCEPT) target prot opt source destination
linux apache webserver centos
Phildo May 23 '12 at 23:25 2012-05-23 23:25
source share