The config value fixed it, didn't have to apply the patch. Thank you igor.
2009/8/6 Igor Sysoev <is@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