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; }