服务端未收到请求

服务端未收到请求

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;
}
04-28 23:12