Difference between revisions of "Nginx"

From VoIPmonitor.org
Jump to navigation Jump to search
Line 2: Line 2:
  
 
These options are necessary to configure in nginx configuration file (by default /etc/nginx/nginx.conf) usable contexts are (http, server, location):
 
These options are necessary to configure in nginx configuration file (by default /etc/nginx/nginx.conf) usable contexts are (http, server, location):
 +
 +
'''Changes from default value'''
 
  proxy_buffer_size          128k;
 
  proxy_buffer_size          128k;
 
  proxy_buffers              4 256k;
 
  proxy_buffers              4 256k;
Line 7: Line 9:
 
  proxy_temp_file_write_size 256k;
 
  proxy_temp_file_write_size 256k;
  
 +
 +
'''504 Gateway Timeout error using Nginx as Proxy'''
 +
Add these variables to nginx.conf file:
 +
proxy_connect_timeout      600;
 +
proxy_send_timeout          600;
 +
proxy_read_timeout          600;
 +
send_timeout                600;
  
 
Further links that can be usefull:
 
Further links that can be usefull:
 
 
http://www.nginxtips.com/504-gateway-time-out-using-nginx/
 
http://www.nginxtips.com/504-gateway-time-out-using-nginx/
 
 
http://stackoverflow.com/questions/561946/how-do-i-prevent-a-gateway-timeout-with-fastcgi-on-nginx
 
http://stackoverflow.com/questions/561946/how-do-i-prevent-a-gateway-timeout-with-fastcgi-on-nginx

Revision as of 17:41, 4 April 2018


These options are necessary to configure in nginx configuration file (by default /etc/nginx/nginx.conf) usable contexts are (http, server, location):

Changes from default value

proxy_buffer_size          128k;
proxy_buffers              4 256k;
proxy_busy_buffers_size    256k;
proxy_temp_file_write_size 256k;


504 Gateway Timeout error using Nginx as Proxy Add these variables to nginx.conf file:

proxy_connect_timeout       600;
proxy_send_timeout          600;
proxy_read_timeout          600;
send_timeout                600;

Further links that can be usefull: http://www.nginxtips.com/504-gateway-time-out-using-nginx/ http://stackoverflow.com/questions/561946/how-do-i-prevent-a-gateway-timeout-with-fastcgi-on-nginx