Temporary English homepage redirect

This commit is contained in:
Oleg Lavrovsky 2018-06-18 15:17:56 +02:00
parent e96c0a1528
commit a4132a99eb

View file

@ -63,8 +63,9 @@ server {
} }
# Disable English home page (for now) # Disable English home page (for now)
location ^/en$ { return 301 $scheme://$host/de/; } if ($host = 'public-health.ch') {
location ^/privacy$ { return 301 $scheme://$host/de/privacy; } rewrite ^/en/$ $scheme://$host/de/;
}
location / { location / {
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;