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问题解决

相关文章:

  • 2021-11-09
  • 2022-12-23
  • 2022-12-23
  • 2021-09-06
  • 2022-12-23
  • 2021-11-26
  • 2021-11-18
  • 2021-08-06
猜你喜欢
  • 2021-08-19
  • 2021-08-20
  • 2022-01-16
  • 2022-01-30
  • 2021-09-16
  • 2021-10-15
  • 2022-12-23
相关资源
相似解决方案