How to avoid "too big header" issue?

Igor Sysoev igor at sysoev.ru
Fri May 6 10:59:36 MSD 2011


On Fri, May 06, 2011 at 02:34:03AM -0400, stalkercn wrote:
> http://www.toofiles.com/zh/rawfilesdownload-documents-log-nginx.html

nginx does not merge locations as Apache does, so:

        location / {
            root   /home/www;
            index  index.php index.html;
        }

        location ~ \.php$ {
            root           /home/www;
            fastcgi_pass   127.0.0.1:9000;
            fastcgi_index  index.php;
            fastcgi_param SCRIPT_FILENAME /home/www$fastcgi_script_name;
            include        fastcgi_params;

            fastcgi_temp_file_write_size 10m;
            fastcgi_busy_buffers_size    512k;
            fastcgi_buffer_size          512k;
            fastcgi_buffers           16 512k;
            fastcgi_connect_timeout      300;
            fastcgi_send_timeout         300;
            fastcgi_read_timeout         300;
            fastcgi_intercept_errors     on;
            fastcgi_next_upstream error invalid_header timeout http_500;
        }


-- 
Igor Sysoev



More information about the nginx mailing list