On Thu, Aug 06, 2009 at 12:44:44PM +0100, Magnus Leuthner wrote:
> I have a little issue: I try to send out a quite big header from my
> fastcgi application (using libfastcgi, FCGX). The headers contain
> about 30 Set-Cookie records. Nginx only gives an 502 Bad Gateway error
> when I try to send that through nginx.
>
> Please let me know how to increase the maximum header size in nginx,
> preferably in the configuration, but if there is no config hook for
> this a hint to where to change a Macro in the code would be
> appreciated as well.
Probably, you need to increase fastcgi buffers:
fastcgi_buffer_size 32k;
fastcgi_buffers 4 32k;
Apply the attached patch also.
--
Igor Sysoev
http://sysoev.ru/en/