Hello,
Is this the right way to switch backend based in cookies?
[code]
location / {
if ($http_cookie ~* "memberid=") {
proxy_pass http://10.10.10.10;
break;
}
if ($http_cookie ~* "clientid=") {
proxy_pass http://10.10.10.15;
break;
}
proxy_pass http://10.10.10.20;
}
[/code]
Thanks.