summaryrefslogtreecommitdiff
path: root/nginx.inc.conf
diff options
context:
space:
mode:
authorAlex Xu <alex_y_xu@yahoo.ca>2014-04-16 15:17:31 -0400
committerAlex Xu <alex_y_xu@yahoo.ca>2014-04-16 15:17:31 -0400
commite417662dce5cae2e95ef98ee38baa8f53a02b9d5 (patch)
treedce94fb8524dece7e3fcc677ec0cf908a6ec2a97 /nginx.inc.conf
parent6a50d79523cf215001cdd55c74c040bd410775df (diff)
downloadhtml5ks-e417662dce5cae2e95ef98ee38baa8f53a02b9d5.tar.xz
html5ks-e417662dce5cae2e95ef98ee38baa8f53a02b9d5.zip
mbleh
Diffstat (limited to 'nginx.inc.conf')
-rw-r--r--nginx.inc.conf17
1 files changed, 2 insertions, 15 deletions
diff --git a/nginx.inc.conf b/nginx.inc.conf
index bdc514f..9d8804e 100644
--- a/nginx.inc.conf
+++ b/nginx.inc.conf
@@ -13,21 +13,8 @@ location ~ ^/(css/font|js/lib)/ {
expires 1d;
}
-location ~ ^/(index\.(html|php))?$ {
- set $warned NO;
- if ($http_cookie ~ "warned") {
- set $warned YES;
- }
- if ($args ~ "warned") {
- set $warned YES;
- }
- if ($warned = NO) {
- return 307 /warn.html;
- }
-}
-
-location /warned.php {
- return 301 "/warned.html?$args&language=$http_accept_language";
+location /language.php {
+ return 301 "/language.php?$args&language=$http_accept_language";
}
expires 5s;