This commit is contained in:
Thomas Dedek
2019-12-18 11:37:56 +01:00
commit a6e9d9230f
39 changed files with 1152 additions and 0 deletions

18
static/.htaccess Normal file
View File

@@ -0,0 +1,18 @@
AuthType Basic
AuthName "Geschuetzter Bereich. Zugangsdaten koennen beim AK-IT unbuerokratish angefordert werden."
AuthUserFile /home/pacs/ecg00/users/portal/doms/my.ecogood.world/.htpasswd
Require valid-user
# redirection depending on the language
RewriteEngine on
RewriteCond %{HTTP:Accept-Language} ^de [NC]
RewriteRule ^$ https://%{HTTP_HOST}/de [L,R=302]
RewriteCond %{HTTP:Accept-Language} ^fr [NC]
RewriteRule ^$ https://%{HTTP_HOST}/fr [L,R=302]
# Fallback for any other language to spanish
RewriteCond %{HTTP_HOST} my.ecogood.world [NC]
RewriteRule ^$ https://%{HTTP_HOST}/en [L,R=302]