if proxy_read_timeout - then do something?

Maxim Dounin mdounin at mdounin.ru
Mon Apr 2 10:57:08 UTC 2012


Hello!

On Mon, Apr 02, 2012 at 05:23:30AM -0400, shrinath.m wrote:

> Hi, 
> 
> I would like to put a proxy_read_timeout and if it times out, I want to
> do a specific action in php and return some response to the user. Is
> this possible? How? 

http://nginx.org/r/error_page

You have to handle 504 (Gateway Timeout) errors.

Maxim Dounin



More information about the nginx mailing list