nginx proxy_pass指令’/’使用注意事项
1. proxy_pass配置说明不带/复制代码 代码如下:location /test/{proxy_pass http://t6:8300; }带/复制代码 代码如下:location /test/ { proxy_pass http://t6:8300/; } 上面两种配置,区别只在于proxy_pass转发的路径后是否带 “/”针对情况1,如果访问url = http://server/test/test.jsp,则被nginx代理后,请求路径会...