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
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
map $cookie_test_debug $forward_to_gray {
# forward to gray1
9cb88042edc55bf85c22e89cf880c63b 10.0.0.1;
}
location ~ ^/test/ {
root /data/www/project;
index index.html;
if ( $uri !~ (css|js)$ ) {
rewrite ^.*$ /test/index.html break;
}
map $cookie_test_debug $forward_to_gray {
# forward to gray1
9cb88042edc55bf85c22e89cf880c63b 10.0.0.1;
}
location ~ ^/test/ {
root /data/www/project;
index index.html;
if ( $uri !~ (css|js)$ ) {
rewrite ^.*$ /test/index.html break;
}