From 99e6b5e63534d79f95c5ef03d6fc2f5ce10ab473 Mon Sep 17 00:00:00 2001 From: Oleg Lavrovsky Date: Mon, 28 May 2018 18:27:14 +0200 Subject: [PATCH] Disable En page --- ansible/roles/web/templates/nginx.conf.j2 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ansible/roles/web/templates/nginx.conf.j2 b/ansible/roles/web/templates/nginx.conf.j2 index 2ab7301..83ffe28 100644 --- a/ansible/roles/web/templates/nginx.conf.j2 +++ b/ansible/roles/web/templates/nginx.conf.j2 @@ -44,6 +44,11 @@ server { add_header Cache-Control "public"; } + # Disable English home page (for now) + location /en/ { + return 301 $scheme://$host/de/; + } + location / { proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;