Reputation: 1307
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
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.
}
Upvotes: 0
Reputation: 14873
Quickly you need to navigate on this links
see the similar or duplicate stacks on following links
Upvotes: 1
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