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

在 nginx.conf 的http段,加入下面的配置:

proxy_buffer_size 128k;
 
proxy_buffers 32 32k;
 
proxy_busy_buffers_size 128k;

 

重启后一般就可以解决,如果还是报502,再在host配置的php段加入下面配置:

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

 

重启nginx即可。

你可能感兴趣的:(修复Nginx报错:upstream sent too big header while reading response header from upstream)