› NGINX
› NGINX Trac
› 3rd Party Modules
› Security Advisories
› CHANGES
› OpenResty
› ngx_lua
› Tengine
在线学习资源
› NGINX 开发从入门到精通
NGINX Modules
› ngx_echo
wvwking
V2EX  ›  NGINX

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

  •  1
     
  •   wvwking · Feb 5, 2015 · 5572 views
    This topic created in 4297 days ago, the information mentioned may be changed or developed.

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

    qq446015875
    qq446015875
    Feb 5, 2015
    1
    我对nginx不熟,但是,这……需要设置么?
    wdlth
    wdlth
    Feb 5, 2015
    2
    http://nginx.org/en/docs/http/server_names.html#miscellaneous_names
    里面写着
    listen 80 default_server;
    server_name _;
    wvwking
    wvwking
    OP
    Feb 5, 2015
    3
    @qq446015875 之前没有设置的时候,没办法通过IP来访问,不知道是因为什么。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   3825 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 03:57 · PVG 11:57 · LAX 19:57 · JFK 22:57
    ♥ Do have faith in what you're doing.