Welcome! Log In Create A New Profile

Advanced

'and' conjunction

Posted by rickb 
'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: 76
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready