› 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 · 3478 views
    This topic created in 3656 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
    234747005
    Nov 9, 2016
    1
    反向代理即可
    stamaimer
    stamaimer
    Nov 9, 2016 via iPhone❤️1
    2
    3000/3001 监听本地请求, nginx 把 80 端口的请求转到 3000/3001
    wobuhuicode
    wobuhuicode
    OP
    Nov 9, 2016
    3
    @stamaimer 明白了~自己想歪了~
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2063 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 05:32 · PVG 13:32 · LAX 21:32 · JFK 00:32
    ♥ Do have faith in what you're doing.