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

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防火墙………手动加个例外

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

报告相同问题?

悬赏问题

  • ¥15 MCNP里如何定义多个源?
  • ¥20 双层网络上信息-疾病传播
  • ¥50 paddlepaddle pinn
  • ¥20 idea运行测试代码报错问题
  • ¥15 网络监控:网络故障告警通知
  • ¥15 django项目运行报编码错误
  • ¥15 请问这个是什么意思?
  • ¥15 STM32驱动继电器
  • ¥15 Windows server update services
  • ¥15 关于#c语言#的问题:我现在在做一个墨水屏设计,2.9英寸的小屏怎么换4.2英寸大屏