diff --git a/roles/taiga/files/taiga.httpd.conf b/roles/taiga/files/taiga.httpd.conf index ca8a9be..a729530 100644 --- a/roles/taiga/files/taiga.httpd.conf +++ b/roles/taiga/files/taiga.httpd.conf @@ -8,6 +8,11 @@ ProxyPass /admin http://localhost:8001/admin ProxyPassReverse /admin http://localhost:8001/admin ProxyPass /events ws://localhost:8888/events +RewriteEngine On + +RewriteCond %{HTTPS} !on +RewriteRule /.* https://%{SERVER_NAME}$0 + Alias /static /usr/local/lib/taiga/taiga-back/static Require all granted @@ -22,11 +27,6 @@ DocumentRoot /usr/local/lib/taiga/taiga-front-dist/dist Require all granted - RewriteEngine On - - RewriteCond %{HTTPS} !on - RewriteRule /.* https://%{SERVER_NAME}$0 - RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ index.html [L]