如果做proxy,可以将proxy配置修改buffer长度,或者直接关闭buffer。http {
proxy_buffer_size 128k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
}
http {
proxy_buffering off;
}
如果做fastcgi,可以将配置改为:
fastcgi_buffers 16 16k;
fastcgi_buffer_size 32k;
参考链接:http://stackoverflow.com/questions/23844761/upstream-sent-too-big-header-while-reading-response-header-from-upstream
时间: 2024-11-04 19:16:51