map $cookie_wpt_debug $forward_to_gray {
# When default is not specified, the default resulting value will be an empty string.
default "";
9cb88042edc55bf85c22e89cf880c63a 10.105.195.11;
}
if ( $forward_to_gray != '' ) {
proxy_pass http://$forward_to_gray$request_uri;
break;
}
When I configure this, he can be routed normally.
map $cookie_wpt_debug $to_gray {
# When default is not specified, the default resulting value will be an empty string.
default "";
9cb88042edc55bf85c22e89cf880c63a 10.105.195.11;
}
if ( $to_gray != '' ) {
proxy_pass http://$to_gray$request_uri;
break;
}
When I configure this, he said that it can't be routed, I don't know why.
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx