分析:
1.后端地址正常返回200;
2.确认是url加上参数后,nginx返回400,并且nginx除了400状态码的访问日志,没有输出其他异常日志;
nginx地址:
https://test.com/test/and/ip:123/~~/ent%5B@uri=%2tel:1%5D/code
解决方案:
在proxy_pass的跳转路径后新增$request_uri
location /test/ {
proxy_pass http://192.168.1.11$request_uri;
}
参考文档:
本文解决了一个特定的Nginx配置问题,即当URL携带特定参数时出现400错误的情况。通过在proxy_pass指令后追加$request_uri解决了此问题。
2994

被折叠的 条评论
为什么被折叠?



