connection close on 500, 503, 502.

Maxim Dounin mdounin at mdounin.ru
Mon Nov 3 21:25:56 UTC 2014


Hello!

On Mon, Nov 03, 2014 at 04:14:13PM -0500, newnovice wrote:

> Can i just do this: 
> 
>     error_page 404 =400;
>     error_page 502 =500 @close_conns;
>         location @close_conns {
>             internal;
>             keepalive_requests 0;
>         }

Something like "keepalive_timeout 0;" should be a better choice, 
as it is documented to disable keepalive connections, see 
http://nginx.org/r/keepalive_timeout.

-- 
Maxim Dounin
http://nginx.org/



More information about the nginx mailing list