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

Nginx 可不可以通过 Request 的消息头或者消息体中 json 的 value 进行不同分发?

  •  
  •   zealinux · Dec 3, 2020 · 2748 views
    This topic created in 2019 days ago, the information mentioned may be changed or developed.
    5 replies    2020-12-04 09:34:23 +08:00
    knightdf
        1
    knightdf  
       Dec 3, 2020
    nginx-lua 可以
    0ZXYDDu796nVCFxq
        2
    0ZXYDDu796nVCFxq  
       Dec 3, 2020 via Android
    消息头可以,很容易实现
    判断 body 内容性能太低
    julyclyde
        3
    julyclyde  
       Dec 3, 2020
    if 指令
    goxy
        4
    goxy  
       Dec 3, 2020
    openresty 试试
    DingJZ
        5
    DingJZ  
       Dec 4, 2020
    头可以用 map,刚做过类似需求
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2644 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 47ms · UTC 04:55 · PVG 12:55 · LAX 21:55 · JFK 00:55
    ♥ Do have faith in what you're doing.