如出现类似错误

[error] 15887#15887: *48251 upstream sent too big header while reading response header from upstream, client: 127.0.0.1, server: test.io, ……

可以在Nginx配置文件nginx.conf server段添加以下信息,如

server {
 proxy_busy_buffers_size   512k;
 proxy_buffers   4 512k;
 proxy_buffer_size   256k;
 # rest of nginx config #
}

完成后重启即可解决。

参考学习:https://www.cyberciti.biz/faq/nginx-upstream-sent-too-big-header-while-reading-response-header-from-upstream/

标签: none

添加新评论