Fw:Routing problems through cookies
姜伯洋
15555513217 at 163.com
Wed Mar 27 02:41:07 UTC 2019
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20190327/e5a55532/attachment.html>
More information about the nginx
mailing list