继续cookies的灰度发布

2022-07-01  本文已影响0人  Al_不期而遇

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;

}
}

上一篇 下一篇

猜你喜欢

热点阅读