summaryrefslogtreecommitdiff
path: root/nginx.inc.conf
diff options
context:
space:
mode:
authorAlex Xu <alex_y_xu@yahoo.ca>2014-01-20 13:53:17 -0500
committerAlex Xu <alex_y_xu@yahoo.ca>2014-01-20 13:53:17 -0500
commit087e45d9bae8ffaef840e907c38e4a8402fab69b (patch)
tree17316610cbb63f491edbc6f1ae5a642fdc2d35e9 /nginx.inc.conf
parent8ccc464b0de39e7fc73b3c3e50f80f6c2452c8fe (diff)
downloadhtml5ks-087e45d9bae8ffaef840e907c38e4a8402fab69b.tar.xz
html5ks-087e45d9bae8ffaef840e907c38e4a8402fab69b.zip
Stuff.
Diffstat (limited to 'nginx.inc.conf')
-rw-r--r--nginx.inc.conf12
1 files changed, 7 insertions, 5 deletions
diff --git a/nginx.inc.conf b/nginx.inc.conf
index b795a1c..acab0ef 100644
--- a/nginx.inc.conf
+++ b/nginx.inc.conf
@@ -14,19 +14,19 @@ location ~ ^/(css/font|js/lib)/ {
location / {
set $warned NO;
if ($http_cookie ~ "warned") {
- set $warned YES;
+ set $warned YES;
}
if ($args ~ "warned") {
- set $warned YES;
+ set $warned YES;
}
if ($warned = NO) {
- return 307 /warn.html;
+ return 307 /warn.html;
}
}
-location /setcookie.html {
+location /warned.ngx {
add_header Set-Cookie "warned=1; Expires=Tue, 19 Jan 2038 00:00:00 GMT; HttpOnly";
- return 301 /;
+ return 301 "/warned.html?$args&language=$http_accept_language";
}
location /warn.html {
@@ -40,3 +40,5 @@ location /robots.txt {
expires 5s;
add_header Cache-Control public;
add_header X-UA-Compatible "IE=edge";
+
+# vim:ft=nginx: