nginx配置根据x-seesion进行转发

    location ^~ /atssa/ {

        if ($arg_version = 5800) {
           proxy_pass http://10.0.0.100:6500;
        }
        if ($cookie_xAppInfo ~ ^5800) {
           proxy_pass http://10.0.0.100:6500;
        }
原文地址:https://www.cnblogs.com/kaishirenshi/p/12396932.html