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...
400 Bad Request 是一种 HTTP 错误状态码。HTTP/1.1 对 400 Bad Request的定义主要是: 1.语义有误,当前请求无法被服务器理解 2.请求参数有误 3.丢包导致异常 解决方法 :nginx 配置内容修改成: location~/websocket{proxy_pass https://xxxx;proxy_set_header Host$host;proxy_http_version1.1;proxy_set_heade...
100-continue > < HTTP/1.1 100 Continue * We are completely uploaded and fine < HTTP/1.1 400 Bad Request < Server: nginx/1.16.1 < Date: Sat, 23 Apr 2022 15:55:14 GMT < Content-Type: text/plain; charset=utf-8 < Transfer-Encoding: chunked < Connection: keep-alive < * Curl_http_...
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...
nginx转发成功报400 bad request,服务端未收到请求 解决办法: upstream后面不要跟下划线 例如: upstream auth_service{ server 30.4.164.151:10002; } location /auth_service { proxy_pass http://auth_service; } 1. 2. 3. 4. 5. 6. 7. 修改为: ...