Nginx 利用 cookie 提供不同的版本

map $cookie_version $server {
console console;
default cdnsaas_fe;
}
upstream server1 {
server localhost:8080 weight=1 max_fails=1 fail_timeout=30s;
}
upstream server2 {
server localhost:7300 weight=1 max_fails=1 fail_timeout=30s;
}

之后使用 proxy_pass http://$server;