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

nginx 配置的一些疑惑

  •  
  •   wobuhuicode · Nov 9, 2016 · 3445 views
    This topic created in 3632 days ago, the information mentioned may be changed or developed.

    手上的网站使用 nginx 去监听 80 端口,访问 3000/3001 两个端口。那么我想禁止—域名:端口的访问模式,这个时候应该在 nginx 去把 3000 端口返回 403 还是使用 iptables 去关闭端口 呢?

    3 replies  •  2016-11-09 16:46:57 +08:00
    234747005
        1
    234747005  
       Nov 9, 2016
    反向代理即可
    stamaimer
        2
    stamaimer  
       Nov 9, 2016 via iPhone   ❤️ 1
    3000/3001 监听本地请求, nginx 把 80 端口的请求转到 3000/3001
    wobuhuicode
        3
    wobuhuicode  
    OP
       Nov 9, 2016
    @stamaimer 明白了~自己想歪了~
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4677 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 00:10 · PVG 08:10 · LAX 17:10 · JFK 20:10
    ♥ Do have faith in what you're doing.