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

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

Directives:
  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 http://wiki.nginx.org/HttpProxyModul...onnect_timeout
  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:
Code:
upstream sent too big header while reading response header from upstream
File should look like this:
Code:
client_max_body_size       64m;
client_body_buffer_size    128k;
location / {
   proxy_pass         http://127.0.0.1:82/;
   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