Welcome! Log In Create A New Profile

Advanced

Re: map within a map

October 23, 2014 05:48PM
Igor Sysoev Wrote:
-------------------------------------------------------
> You can try other path:
>
> map $ngxvar1 $myvar1 {
> default $myvar2;
> ~*string 1;
> }
>
>
> map $ngxvar2 $myvar2 {
> default 0;
> ~*string 1;
> }

tnx Igor, this works to:

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

map $myvar1$myvar2 $result1 {
default 0;
~1 1;
}

if ($result1) { return 403; }
Subject Author Posted

map within a map

itpp2012 October 23, 2014 01:17PM

Re: map within a map

Igor Sysoev October 23, 2014 05:02PM

Re: map within a map

itpp2012 October 23, 2014 05:48PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 162
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