Apache httpd不响应远程浏览器

我安装了httpd 2.4.10-2.fc20 ,它运行:

 $ systemctl -l | grep httpd.*running httpd.service loaded active running The Apache HTTP Server 

…并听取:

 $ netstat -pant | egrep 'PID|httpd' Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 29709/httpd 

如果从本Linux机器上的本地浏览器访问,它会按预期进行响应。

试图从我的Intranet的Windows机器上的FF访问它我得到一个networking超时。 ssh连接(包括Xming)的工作就像一个魅力,所以它显然不是一个networking问题。 我没有在这个Windows上运行的个人防火墙,可能会阻止某些东西。

我见过Apache听,但没有回应,但这并没有帮助。 我禁用了iptables:

 $ systemctl status iptables iptables.service - IPv4 firewall with iptables Loaded: loaded (/usr/lib/systemd/system/iptables.service; disabled) Active: inactive (dead) 

这几个小时以来就让我感到不安,我上下搜寻了networking,尝试了各种各样的东西 – 无济于事。

您需要在您的防火墙中插入一条规则,以接受所有连接到端口80 / tcp,尝试这样做:

  # firewall-cmd --permanent --add-port=80/tcp # firewall-cmd --reload 

请记住,防火墙服务名称是firewalld,如果要禁用防火墙,则需要执行以下命令:

 # systemctl disable firewalld # systemctl stop firewalld