Temporary English homepage redirect

This commit is contained in:
Oleg Lavrovsky 2018-06-18 15:17:56 +02:00
parent e96c0a1528
commit a4132a99eb
1 changed files with 3 additions and 2 deletions

View File

@ -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;