502 errors, upstream sent too big header

Travis Derouin travis at wikihow.com
Tue Apr 5 00:52:22 MSD 2011

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:, server:
_, request: "POST
HTTP/1.1", upstream: "fastcgi://", 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?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20110404/f3b3fa00/attachment.html>

More information about the nginx mailing list