diff options
author | Alex Xu <alex_y_xu@yahoo.ca> | 2014-04-16 15:17:31 -0400 |
---|---|---|
committer | Alex Xu <alex_y_xu@yahoo.ca> | 2014-04-16 15:17:31 -0400 |
commit | e417662dce5cae2e95ef98ee38baa8f53a02b9d5 (patch) | |
tree | dce94fb8524dece7e3fcc677ec0cf908a6ec2a97 /nginx.inc.conf | |
parent | 6a50d79523cf215001cdd55c74c040bd410775df (diff) | |
download | html5ks-e417662dce5cae2e95ef98ee38baa8f53a02b9d5.tar.xz html5ks-e417662dce5cae2e95ef98ee38baa8f53a02b9d5.zip |
mbleh
Diffstat (limited to 'nginx.inc.conf')
-rw-r--r-- | nginx.inc.conf | 17 |
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; |