How to , and other stuff about linux, photo, php … A linux, photography blog. To remember some linux situation, and fix them quickly.

December 14, 2011

upstream sent too big header while reading response header from upstream

Filed under: Linux — admin @ 11:50 am

In the post http://matrafox.info/firephp-on-nginx-zend_db_profiler_firebug-bad-gateway.html  i modiy

fastcgi_buffer_size 16k;
fastcgi_buffers 4 16k;

However after a few day I nottice that on firefox I have a lot of 502  bad gateway .  So after a short look on log I see

*62814 upstream sent too big header while reading response header from upstream

So, to fix this I increase the valuse to

fastcgi_buffers 8 16k;
fastcgi_buffer_size 32k;

I see also that they can be even higher  something like

fastcgi_buffers 4 256k;
fastcgi_buffer_size 128k;

 

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment

Powered by WordPress