summaryrefslogtreecommitdiff
path: root/nginx.inc.conf
diff options
context:
space:
mode:
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;