反向代理 27833 recv() failed (104: Connection reset by peer) while reading response header from upstream错误

原因就是请求的头文件过大导致502错误

解决方法就是提高头的缓存

http{

client_header_buffer_size 5m;

 

location / {

proxy_buffer_size 128k;
proxy_busy_buffers_size 192k;
proxy_buffers 4 192k;

}

}

文章来自:https://www.cnblogs.com/chenkg/p/8364579.html
© 2021 jiaocheng.bubufx.com  联系我们
ICP备案:鲁ICP备09046678号-3