Matching on two conditions

Pål-Kristian Hamre pkhamre at
Wed Oct 1 11:34:30 MSD 2008


I have seen that this topic has been discussed on the lists earlier, but
I did not see that anyone found a good solution for it. As far as I
know, nginx does not support if-else or nested if blocks in the
configuration. Any plans on adding support for this?

Anyway, our problem is that we need to match both $request_method and
$remote_addr before doing a rewrite. Have any of you run into the same
problem and found a solution for it?

Pål-Kristian Hamre
Redpill Linpro AS - Changing the game
Telefon: (+47) 21 54 41 68

More information about the nginx mailing list