红联Linux门户
Linux帮助

请教Fedora上的WEB服务器无法被访问

发布时间:2010-04-12 17:11:31来源:红联作者:liuhuisfp
我启动了Fedora下的Apache服务器,不过只能在本地访问服务器上的网页即http://localhost,其它电脑无法通过浏览器访问我电脑。搞了很久一直没搞定,请教一下高手是什么原因导致这样的?
我开启了Firewall的HTTP信任程序,也试过将80端口单独加入到防火墙的信任表中,都没用,看到网上说可能跟iptables的配置有关,不过没看懂,那位兄弟姐妹会解决的,万望指教,谢谢
文章评论

共有 6 条评论

  1. liuhuisfp 于 2010-04-14 13:52:32发表:

    关掉防火墙,
    运行/etc/init.d/iptables stop
    都不行,不知道怎么回事

  2. alick 于 2010-04-13 21:50:41发表:

    同楼上,先把防火墙禁用,试一试

  3. wst021 于 2010-04-13 10:51:57发表:

    关闭掉防火墙后,外网还不能访问吗?

  4. liuhuisfp 于 2010-04-13 08:10:52发表:

    防火墙是不是打开WWW就可以啊
    [attach]30276[/attach]

  5. liuhuisfp 于 2010-04-13 08:07:06发表:

    运行iptables -L命令:
    [root@liuhui-NoteBook hui]# iptables -L
    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
    ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:http
    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

    红色那条是什么意思啊,是不是它屏蔽了其它电脑的请求啊

  6. alick 于 2010-04-12 17:31:54发表:

    iptables就是配置防火墙的规则啊,
    确定你打开了80端口