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

nginx 反向代理访问路径问题

  •  
  •   veezzz · Aug 31, 2015 · 4699 views
    This topic created in 4045 days ago, the information mentioned may be changed or developed.
    nginx 配置反向代理的时候,如何配置访问路径使得在如 /a 下访问,且访问上游服务器的时候,访问路径为 /a 之后的内容

    比如客户端访问 192.168.1.1/a/b nginx 访问上游服务器为 127.0.0.1:8000/b
    1 replies  •  2015-08-31 16:11:44 +08:00
    fghzpqm
        1
    fghzpqm  
       Aug 31, 2015
    ```
    rewrite ^/a / break;
    ```
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   818 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 51ms · UTC 20:05 · PVG 04:05 · LAX 13:05 · JFK 16:05
    ♥ Do have faith in what you're doing.