integrater 2014-02-17 08:00 采纳率: 100%
浏览 10087
已采纳

nginx局域网无法访问,请大家帮忙

我本地安装了nginx,将静态html文件发布上去后,在本地可以正常访问(通过localhost),但是局域网内的其他主机却无法访问,前提:共用的同一个wifi,arp防火墙已关闭,nginx配置文件内容如下:
server {
listen 80;
server_name localhost;

    #charset koi8-r;

    #access_log  logs/host.access.log  main;

    location / {
       root   html5;
       # index  index.html index.htm;
    }

    #error_page  404              /404.html;

    # redirect server error pages to the static page /50x.html
    #
    error_page   500 502 503 504  /50x.html;
    location = /50x.html {
        root   html;
    }

}
郁闷了好久了,局域网访问不了,本地无法进行测试,求高手解答

  • 写回答

1条回答 默认 最新

  • Viz-V 2014-02-17 14:16
    关注

    Linux 的话查下你的iptables
    Windows 的话去看看你的Windows防火墙………手动加个例外

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?