跳到主要内容

Nginx 报错:upstream sent too big header while reading response header from upstream

在 nginx.conf http{} 中添加

proxy_buffer_size   128k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;

如果还是有问题则在 vhost 配置文件中 location ~ .php${} 添加

fastcgi_buffer_size 128k;
fastcgi_buffers 4 256k;
fastcgi_busy_buffers_size 256k;