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 http_cookie ~ "app_ver=(rcc_test)") {
root $rootdir/grayscale;
rewrite ^/(.*)$ /index.html break;
rewrite ^/(.*)$ /grayscale.html break;
}
}
location ~* .(css|js|png)rootdir;
}
}