Maintenance message pages

Roxis roxis at list.ru
Mon Aug 6 21:23:31 MSD 2007


On Monday 06 August 2007, Alexander Staubo wrote:
> > $http_header_name ?
>
> That's pretty much undocumented

http://wiki.codemongers.com/NginxHttpCoreModule

First of all, these are the variables, which represent the lines of the title 
of the client request, for example, $http_user_agent, $http_cookie and so 
forth.

> Now since Nginx does not do boolean logic expressions

two dirty ways

#first
set $test_var "";
if (expr1) {set $test_var ${test_var}1;}
if (expr2) {set $test_var ${test_var}2;}

if ($test_var = "12") {
# expr1 && expr2 = true
}

#second
set $test_var true;
if ( ! expr1) { set $test_var false;}
if ( ! expr2) { set $test_var false;}
if ($test_var = true) {}





More information about the nginx mailing list