conditionally disable keepalives

Maxim Dounin mdounin at mdounin.ru
Fri Sep 17 22:47:56 MSD 2010


Hello!

On Fri, Sep 17, 2010 at 06:45:33PM +0100, Eugaia wrote:

>  On 17/09/2010 17:27, Ryan Malayter wrote:
> >Is it possible to conditionally disable keep-alives via some sort of
> >configuration?
> I would suggest putting the keepalive_timeout directive inside an if
> block, but it's not permitted.
> 
> Igor/Maxim : Is there a good reason why keepalive_timeout cannot be
> set inside a server or location if block?

There is a good reason to disable anything but rewrite directives 
in "if" blocks.

http://wiki.nginx.org/IfIsEvil

Maxim Dounin



More information about the nginx mailing list