map within a map

itpp2012 nginx-forum at nginx.us
Thu Oct 23 17:17:06 UTC 2014


Can I use multiple maps with a single map ?

For example;

map $ngxvar1 $myvar1 {
default 0;
~*string 1;
}
map $ngxvar2 $myvar2 {
default 0;
~*string 1;
}
map $ngxvar3 $myvar3 {
default 0;
~*string 1;
$myvar1 1;
$myvar2 1;
}

This way I would only have one IF $myvar3 ....., but obviously this example
doesn't work, is this possible ?

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,254226,254226#msg-254226



More information about the nginx mailing list