conditionally disable keepalives

Eugaia ngx.eugaia at gmail.com
Fri Sep 17 23:10:26 MSD 2010


  On 17/09/2010 19:47, Maxim Dounin wrote:
> nside a server or location if block?
> There is a good reason to disable anything but rewrite directives
> in "if" blocks.
I know about the 'if is evil' idea, but so long as you know what will 
happen (i.e. that if blocks don't behave like you might expect them to), 
is there any other inherent problem caused?

Was the decision to not allow many statements inside if blocks basically 
made because to do so would probably mean that configurations might do 
something unconventional (and other than what the administrator probably 
would expect them to do), rather than for any other inherent problem?

Thanks,

Marcus.



More information about the nginx mailing list