504 Gateway Time-out media temple

Maxim Dounin mdounin at mdounin.ru
Tue Oct 2 14:06:08 UTC 2012


Hello!

On Tue, Oct 02, 2012 at 09:44:36AM -0400, samueleast wrote:

> I am constantly getting 504 gateway errors when my php script needs to run
> for longer than 60 secs.

Depending on module you use to pass request to backends, i.e. 
proxy_pass or fastcgi_pass in your nginx config, you should tune 
either proxy_read_timeout or fastcgi_read_timeout.  Both defaults 
to 60s.  See here for more details:

http://nginx.org/r/proxy_read_timeout
http://nginx.org/r/fastcgi_read_timeout

[...]

-- 
Maxim Dounin
http://nginx.com/support.html



More information about the nginx mailing list