502 errors, upstream sent too big header

Maxim Dounin mdounin at mdounin.ru
Tue May 3 11:45:07 MSD 2011


On Tue, May 03, 2011 at 04:03:29AM +0200, Mike P. wrote:

> According to passenger's documentation, it doesn't appear that a
> directive exists to adjust any header size limitations.
> Also, Phusion's CTO doesn't mention any possible solution here regarding 
> the same error: http://goo.gl/ZPXvO

Ah, indeed: looking though code suggests they unconditionally set 
buffer size to pagesize and doesn't allow it to be changed.

> If there is no such adjustment that can be made via passenger to
> alleviate this error, is there also no possible solution within Nginx?

You may consider using another module to talk to backends, 
standard proxy or fastcgi may be a good solution.

Maxim Dounin

More information about the nginx mailing list