View Single Post
Old 15th April 2011, 22:53
tio289 tio289 is offline
Join Date: Mar 2009
Posts: 70
Thanks: 2
Thanked 14 Times in 9 Posts

Hi, I have few notes to your config files, specifically proxy.conf file.

  1. client_max_body_size and client_body_buffer_size have to be out of the location, directly in server section.
  2. proxy_connect_timeout cannot be more than 75s - look on reference
  3. proxy_send_timeout set to match php max_input_type
  4. proxy_read_timeout set to match php max_execution_time

I changed buffers too, because I got this error:
upstream sent too big header while reading response header from upstream
File should look like this:
client_max_body_size       64m;
client_body_buffer_size    128k;
location / {
   proxy_redirect     off;
   proxy_set_header   Host             $host;
   proxy_set_header   X-Real-IP        $remote_addr;
   proxy_set_header   X-Forwarded-For  $proxy_add_x_forwarded_for;
   proxy_connect_timeout      60;
   proxy_send_timeout         90;
   proxy_read_timeout         90;
   proxy_buffer_size          32k;
   proxy_buffers              8 16k;
   proxy_busy_buffers_size    64k;
   proxy_temp_file_write_size 64k;
Independent Senior Webdeveloper

Last edited by tio289; 15th April 2011 at 22:57.
Reply With Quote