'and' conjunction
March 12, 2010 08:48AM
The 'if' configuration is lacking the ability to conjoin predicates. It is already possible to have alternatives (this 'or' that) by having several tests. But it is not possible to have this 'and' that tests.

Please add syntax to support multiple predicates.

Possible implementation suggestion: new 'and' keyword between the existing predicates:

[code]
if ($request_method = POST ) and (!-f $request_filename) {
break;
proxy_pass http://127.0.0.1;
}
[/code]


(this example isn't necessarily a good one - it's the first thing that came to mind!)
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 185
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready