summaryrefslogtreecommitdiff
path: root/nginx.inc.conf
diff options
context:
space:
mode:
authorAlex Xu <alex_y_xu@yahoo.ca>2014-03-05 16:56:45 -0500
committerAlex Xu <alex_y_xu@yahoo.ca>2014-03-05 16:56:45 -0500
commit3a2f43e8d5c85a116845c360902f268fd2798ffa (patch)
tree3fb05200422ac1a544d2cd93f938b8408e21e53d /nginx.inc.conf
parent7b49a8bed0a6c8e50adba8fc6c53c39d330bfa0c (diff)
downloadhtml5ks-3a2f43e8d5c85a116845c360902f268fd2798ffa.tar.xz
html5ks-3a2f43e8d5c85a116845c360902f268fd2798ffa.zip
add (untested) php and htaccess
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";