nginx 分发请求报错upstream sent invalid chunked response while reading upstream问题解决

nginx 分发时错误日志如下:

[error] 18854#0: *845 upstream sent invalid chunked response while reading upstream, client: 10.145.32.XXX, server: localhost, request: "GET /gip/GIPServlet?charset=utf-8&queueId=scsn&tradetype=04&transparent=1&username=scsn&requesttype=get&gCustno=0000000010&strauth=ba3f8a9f8e03da52f3734704bfb4cd904887c6e0 HTTP/1.1", upstream: "http://192.168.3.XXX:80/XX/GIPServlet?charset=utf-8&queueId=XX&tradetype=04&transparent=1&username=XX&requesttype=get&gCustno=0000000010&strauth=ba3f8a9f8e03da52f3734704bfb4cd904887c6e0", host: "10.145.9.XXX"


修改见下图:

添加如下两句代码:

proxy_http_version 1.1;
proxy_set_header Connection "";

nginx 分发请求报错upstream sent invalid chunked response while reading upstream问题解决_第1张图片

你可能感兴趣的:(nginx)