Ikbear
Ikbear

Reputation: 1307

nginx error " 504 Gateway Timeout"

I run wordpress on nginx and when I post a comment for my post, I get the error message "504 Gateway Timeout" from nginx. Can anybody tell me how to get rid of this error?

Upvotes: 5

Views: 30240

Answers (3)

Kayes
Kayes

Reputation: 447

Try to update your nginx configuration file. To avoid nginx default timeouts, you can put this in your configuration file.

location / {
   proxy_read_timeout 600s; // Here it is: 600s = 10 min.
   // Rest for your configuration file. 
} 
  • For more information on this, go here

Upvotes: 0

Pramendra Gupta
Pramendra Gupta

Reputation: 14873

Quickly you need to navigate on this links

see the similar or duplicate stacks on following links

  1. Django site on Nginx+FastCGI goes (504 gateway timeout)
  2. How do I prevent a Gateway Timeout with Nginx
  3. Drupal + Nginx + Php-cgi : 502 Bad Gateway error

Upvotes: 1

Kvisle
Kvisle

Reputation: 708

Assuming you're using fastcgi:

This has been answered before in the following question:

How do I prevent a Gateway Timeout with FastCGI on Nginx

In short; Check out the configuration option 'fastcgi_read_timeout'.

Upvotes: 0

Related Questions