nginx B收到的请求:/bar//api

案例7

nginx A配置:

location /foo/ {
  proxy_pass http://192.168.1.56/bar;
}

nginx B收到的请求:/barapi

案例8

nginx A配置:

location /foo {
  proxy_pass http://192.168.1.56/bar;
}

nginx B收到的请求:/bar/api

看到这里是不是都晕了呢,其实是有规律的

现在把这些案例按表格排列起来,结果表示nginx B收到的请求

 3/6   首页 上一页 1 2 3 4 5 6 下一页 尾页

文章TAG:nginx  反向代理  斜线  nginx  斜线  
下一篇