美文网首页
继续cookies的灰度发布

继续cookies的灰度发布

作者: Al_不期而遇 | 来源:发表于2022-07-01 16:02 被阅读0次

    server {

    listen 80;
    server_name grayscale-frontend-v1.dev1..com;
    access_log /var/log/nginx/grayscale-frontend.v1.access.log ;
    error_log /var/log/nginx/grayscale-frontend.v1.error.log;
    set $rootdir "/data/grayscale-frontend";

    location / {
    root rootdir/current; # index index.html; index current.html; if (http_cookie ~ "app_ver=(rcc_test)") {
    root $rootdir/grayscale;

    rewrite ^/(.*)$ /index.html break;

        rewrite ^/(.*)$ /grayscale.html break;
    

    }
    }
    location ~* .(css|js|png){ rootrootdir;

    }
    }

    相关文章

      网友评论

          本文标题:继续cookies的灰度发布

          本文链接:https://www.haomeiwen.com/subject/uvvcbrtx.html