Project

General

Profile

Bug #440

504 Gateway Timeout Error In Nginx Web Server

Added by Daniel Curtis over 10 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Start date:
08/21/2014
Due date:
% Done:

100%

Estimated time:
0.20 h
Spent time:

Description

I encountered a problem while setting up a PHP web application on an nginx web server. I managed to find a solution that increases the timeout values.

  1. Open your nginx.conf file located in /etc/nginx directory
    vi /usr/local/etc/nginx/nginx.conf
    
    • Add this below piece of code under http { section

client_header_timeout 3000;
client_body_timeout 3000;
fastcgi_read_timeout 3000;
client_max_body_size 32m;
fastcgi_buffers 8 128k;
fastcgi_buffer_size 128k;

  1. Reload Nginx and php5-fpm
    service nginx reload
    service php5-fpm reload
    

If the error persists ( which is rare ), consider increasing the values.

Resources

Also available in: Atom PDF