Quantcast
Channel: Nginx Forum - Nginx Mailing List - English
Viewing all articles
Browse latest Browse all 7229

map within a map (2 replies)

$
0
0
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 ?

Viewing all articles
Browse latest Browse all 7229

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>