502 errors, upstream sent too big header

Igor Sysoev igor at sysoev.ru
Tue Apr 5 08:41:17 MSD 2011


On Mon, Apr 04, 2011 at 04:52:22PM -0400, Travis Derouin wrote:
> We seem to be getting sporadic 502 errors, mostly when users are logging in.
> We run a Mediawiki based website, are running nginx 0.9.5, php-fpm 5.3.5.
> 
> The error:
> 
> 2011/04/04 10:41:34 [error] 30517#0: *2143711 upstream sent too big header
> while reading response header from upstream, client: 192.168.100.5, server:
> _, request: "POST
> /index.php?title=Special:Userlogin&action=submitlogin&type=login&returnto=Main-Page
> HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "www.wikihow.com",
> referrer: "http://www.wikihow.com/Special:Userlogin?returnto=Main-Page"
> 
> Our nginx.conf proxy buffer settings:
> 
>     proxy_buffers 16 16k;
>     proxy_buffer_size 32k;
> 
> We've tried increasing these values from the defaults a few times, and it
> doesn't seem to fix the issue.
> 
> Do you have any suggestions on how to fix this?

     fastcgi_buffers 16 16k;
     fastcgi_buffer_size 32k;


-- 
Igor Sysoev
http://sysoev.ru/en/



More information about the nginx mailing list