Welcome! Log In Create A New Profile

Advanced

Fw:Routing problems through cookies

姜伯洋
March 26, 2019 10:42PM
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
Subject Author Posted

Fw:Routing problems through cookies

姜伯洋 March 26, 2019 10:42PM

Re: Fw:Routing problems through cookies

Maxim Dounin March 27, 2019 07:34AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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