upstream sent too big header.

Igor Sysoev is at rambler-co.ru
Tue Sep 4 21:58:15 MSD 2007


On Tue, Sep 04, 2007 at 05:59:20PM +0800, hshh wrote:

> I am running Nginx with PHP. In some case, there is large header
> included big cookie sent from client to server, and I got 502 Gateway
> error. After checked nginx-error.log, it said "upstream sent too big
> header".
> 
> How can I adjust header size for fastcgi?
> 
> I tried setting client_header_buffer_size 4k; not work, tried
> large_client_header_buffers 4 8k; fastcgi_buffer_size 4k;
> proxy_buffer_size 4k; not work either.

fastcgi_buffer_size  8k; # 16k, 32k, etc, until error will disappear.


-- 
Igor Sysoev
http://sysoev.ru/en/





More information about the nginx mailing list