From a4132a99ebd168bb73300a1542364bbc57210658 Mon Sep 17 00:00:00 2001 From: Oleg Lavrovsky Date: Mon, 18 Jun 2018 15:17:56 +0200 Subject: [PATCH] Temporary English homepage redirect --- ansible/roles/web/templates/nginx.conf.j2 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ansible/roles/web/templates/nginx.conf.j2 b/ansible/roles/web/templates/nginx.conf.j2 index 27bdf45..0b79e26 100644 --- a/ansible/roles/web/templates/nginx.conf.j2 +++ b/ansible/roles/web/templates/nginx.conf.j2 @@ -63,8 +63,9 @@ server { } # Disable English home page (for now) - location ^/en$ { return 301 $scheme://$host/de/; } - location ^/privacy$ { return 301 $scheme://$host/de/privacy; } + if ($host = 'public-health.ch') { + rewrite ^/en/$ $scheme://$host/de/; + } location / { proxy_set_header X-Real-IP $remote_addr;