Home / NGINX / nginx 504 gateway timeout

nginx 504 gateway timeout

Restart both ‘apache’ and ‘nginx’. On terminal and with the following code “sudo subl etc/nginx/nginx.conf” to open the file with sublime text or if you want to use nano editor replace “subl” with “nano”. Now add the code below under “http”.

client_max_body_size 99999M;
client_header_timeout 99999;
client_body_timeout 99999;
fastcgi_read_timeout 99999;
fastcgi_buffers 8 128k;
fastcgi_buffer_size 128k;

Restart nginx and php-fpm With the following code.

service php–fpm restart
service nginx restart

Hits: 363

%d bloggers like this: