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

Ingress 可以判断某个域名的请求拒绝掉?

  •  
  •   tyit · Nov 9, 2020 via iPhone · 2696 views
    This topic created in 2204 days ago, the information mentioned may be changed or developed.

    aaa.com 域名 nginx 代理到 bbb.com 域名进行访问,bb.com 域名是在 k8s 的 Ingress,Ingress 层有什么好办法,可以判断只要是 aaa.com 域名代理过来的,就拒绝,返回给它 404,或者其它的?

    2 replies  •  2020-11-10 20:23:56 +08:00
    index90
    index90
    Nov 10, 2020
    1
    判断 Origin
    用 server-snippet
    tyit
    tyit
    OP
    Nov 10, 2020 via iPhone
    2
    @index90 谢谢
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2738 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 04:20 · PVG 12:20 · LAX 20:20 · JFK 23:20
    ♥ Do have faith in what you're doing.