Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

map directive in nginx work only in first variant

$
0
0
I try to use map directive. I have 2 vars and if first var exist set it to new var, or if only second var exist, set it to new var. My config:

map "$arg_arg1:$cookie_1" $new_var {
"~^.*:" $arg_arg1;
"~:.*$" $cookie_1;
default "new";
}
Work only in first situation.

nginx

Viewing all articles
Browse latest Browse all 4759

Trending Articles



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