Welcome! Log In Create A New Profile

Advanced

Re: max header length from fastcgi?

August 06, 2009 07:51AM
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/
Subject Author Posted

max header length from fastcgi?

Magnus Leuthner August 06, 2009 07:44AM

Re: max header length from fastcgi?

Igor Sysoev August 06, 2009 07:51AM

Re: max header length from fastcgi?

Magnus Leuthner August 06, 2009 08:09AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 165
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready