I have Apache-2.4.x running on a GNU/Linux system (Fedora, DHCP, IP Address: 192.168.1.5). I'm able to access the
index.html page by all three methods mentioned below:
http://localhost.localdomainor with 127.0.0.1
http://192.168.1.5(only from the same Linux server).
I've tried the following:
- Port forwarding (http port 80) on the Router.
iptablesof the Linux server (where Apache webserver is running), now it reads as below:
# Generated by iptables-save v126.96.36.199 on Sun Sept 08 08:13:56 2013 *filter :INPUT ACCEPT [0:0] :FORWARD ACCEPT [0:0] :OUTPUT ACCEPT [33:3928] -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT -A INPUT -p icmp -j ACCEPT -A INPUT -i lo -j ACCEPT -A INPUT -p tcp -m state --state NEW -m tcp --dport 22 -j ACCEPT -A INPUT -j REJECT --reject-with icmp-host-prohibited -A INPUT -p tcp -m state --state NEW -m tcp --dport 80 -j ACCEPT -A INPUT -p tcp -m tcp --dport 80 -j ACCEPT -A FORWARD -j REJECT --reject-with icmp-host-prohibited COMMIT # Completed on Sun Sept 08 08:13:56 2013
NOTE: I can login to the Linux server using PuTTY. Can ping it,
traceroute it from other systems in my home Network. But I'm not able to see the webpages hosted on Linux Server.
Also, I've tried looking into Apache's config file (
httpd.conf), currently made Listen tag: