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

nginx error.log 报错 'upstream sent invalid chunked response while reading upstream'

解决:

在server的 .conf 文件中添加两句

server{

...... //其他配置

location / {

#就添加下面这两句

proxy_http_version 1.1;

proxy_set_header Connection "";

}

}

你可能感兴趣的:(nginx 分发请求报错upstream sent invalid chunked response while reading upstream问题解决)