max header length from fastcgi?

Magnus Leuthner magnus.leuthner at googlemail.com
Thu Aug 6 16:09:35 MSD 2009


The config value fixed it, didn't have to apply the patch. Thank you igor.


2009/8/6 Igor Sysoev <is at rambler-co.ru>:
> 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/
>





More information about the nginx mailing list