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

 

posted @ 2020-03-02 17:42  开始认识  阅读(155)  评论(0编辑  收藏  举报