nginx转发成功报400 bad request,服务端未收到请求
Nginx 请求 成功 request 服务端 转发 Bad 400
2023-09-14 09:08:40 时间
nginx转发成功报400 bad request,服务端未收到请求
解决办法:
upstream后面不要跟下划线
例如:
upstream auth_service{
server 30.4.164.151:10002;
}
location /auth_service {
proxy_pass http://auth_service;
}
修改为:
upstream auth-service{
server 30.4.164.151:10002;
}
location /auth_service {
proxy_pass http://auth-service; // 修改为横线
}
相关文章
- 【Nginx】将http升级到https并且同时支持http和https两种请求
- 不能访问虚拟机上的nginx网站
- nginx重新整理——————http请求的11个阶段中的日志阶段[十九]
- nginx重新整理——————http请求的11个阶段中的content阶段[十八]
- nginx安全:配置ssl证书(https证书)
- nginx js、css多个请求合并为一个请求(concat模块)
- nginx流量复制将请求同时发送到正式和测试环境
- nginx重新整理——————http请求的11个阶段中的日志阶段[十九]
- nginx js、css多个请求合并为一个请求(concat模块)
- Nginx http_limit_req_module 限制每个客户端请求数
- openresty获取nginx post请求参数
- openresty获取nginx请求url中的所有参数
- [转]Nginx 502 PHP LNMP 502 终极解决方案 完美解决502 用 upstream 和 fastcgi_next_upstream 可以极大缓解
- 【Nginx】负载均衡——ip_hash
- spring clould -多模块 -swagger2 配置 nginx 的正确设置
- Nginx 跨域请求处理——筑梦之路
- srs+rtmp和nginx+rtmp推流延时比较
- windows下nginx配置rtmp模块
- Nginx常见面试题整理---40题