nginx 如何设置允许通过 IP 访问网站?

2015-02-05 22:36:33 +08:00
 wvwking

没有域名,所以打算直接通过IP访问。

4299 次点击
所在节点    NGINX
3 条回复
qq446015875
2015-02-05 22:41:08 +08:00
我对nginx不熟,但是,这……需要设置么?
wdlth
2015-02-05 22:59:58 +08:00
http://nginx.org/en/docs/http/server_names.html#miscellaneous_names
里面写着
listen 80 default_server;
server_name _;
wvwking
2015-02-05 23:18:08 +08:00
@qq446015875 之前没有设置的时候,没办法通过IP来访问,不知道是因为什么。

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/168632

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX