summaryrefslogtreecommitdiff
path: root/nginx.inc.conf
diff options
context:
space:
mode:
Diffstat (limited to 'nginx.inc.conf')
-rw-r--r--nginx.inc.conf13
1 files changed, 2 insertions, 11 deletions
diff --git a/nginx.inc.conf b/nginx.inc.conf
index 5b1cac7..890a674 100644
--- a/nginx.inc.conf
+++ b/nginx.inc.conf
@@ -11,7 +11,7 @@ location ~ ^/(css/font|js/lib)/ {
expires 1d;
}
-location ~ ^/(index\.html)?$ {
+location ~ ^/(index\.(html|php))?$ {
set $warned NO;
if ($http_cookie ~ "warned") {
set $warned YES;
@@ -24,19 +24,10 @@ location ~ ^/(index\.html)?$ {
}
}
-location /warned.ngx {
- add_header Set-Cookie "warned=1; Expires=Tue, 19 Jan 2038 00:00:00 GMT; HttpOnly";
+location /warned.php {
return 301 "/warned.html?$args&language=$http_accept_language";
}
-location /warn.html {
- break;
-}
-
-location /robots.txt {
- break;
-}
-
expires 5s;
add_header Cache-Control public;
add_header X-UA-Compatible "IE=edge,chrome=1";