nginx的proxy_pass

2020-07-15  本文已影响0人  罗不错
  1. 连接 abc/api/test => http://127.0.0.1:7001/api/test
 location /api/ {
            proxy_pass  http://127.0.0.1:7001;
  }

  1. 切断 abc/api/test => http://127.0.0.1:7001/test
 location /api/ {
            proxy_pass  http://127.0.0.1:7001/;
  }
上一篇下一篇

猜你喜欢

热点阅读