location / {
if ($cookie_firstvisit != “1”) {
return 301 /login.html;
}
}
location = /login.html {
add_header Set-Cookie “firstvisit=1;Max-Age=1000”;
}
location / {
if ($cookie_firstvisit != “1”) {
return 301 /login.html;
}
}
location = /login.html {
add_header Set-Cookie “firstvisit=1;Max-Age=1000”;
}