nginx返回400状态码
最编程
2024-01-16 10:30:30
...
分析:
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;
}
参考文档:
Module ngx_http_proxy_module
推荐阅读
-
[Jenkins][git]构建时提示引起: hudson.plugins.git.GitException:命令 "/usr/bin/git reset --hard" 返回状态码 128:
-
HTTP 请求返回 304 状态代码,并在 nginx 中研究 304
-
总结了导致HTTP请求状态码为400的原因
-
前端与后端存在哪方面问题导致400状态码的出现?
-
HTTP 400状态码背后的原因是什么?
-
个人总结:解读HTTP状态码的400\500错误代码
-
解决HTML 400状态码和HTTP 400 Bad Request状态码的方法
-
HTTP状态码:400\500 错误代码(个人总结)
-
【JavaWeb】探讨HTTP状态码100、200、300、400、500、600的解析
-
http statusCode(状态码) 200、300、400、500序列