我本地安装了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;
}
}
郁闷了好久了,局域网访问不了,本地无法进行测试,求高手解答