diff --git a/docker/sympa/default.conf b/docker/sympa/default.conf index 973f0cd07559426e6e415b30f0898aa429ee8dee..620239f89f21300ea5c3b5d9fb4c6d30136c28fd 100644 --- a/docker/sympa/default.conf +++ b/docker/sympa/default.conf @@ -26,6 +26,17 @@ </Location> Alias /static-sympa /usr/share/sympa/static_content/ + + Alias /css-sympa /var/lib/sympa/css + <Directory /var/lib/sympa/css> + Require all granted + </Directory> + + Alias /pictures-sympa /var/lib/sympa/pictures + <Directory /var/lib/sympa/pictures> + Require all granted + </Directory> + <Location /sympasoap> SetHandler "proxy:unix:/var/run/sympa/sympasoap.socket|fcgi://" Require all granted @@ -37,6 +48,22 @@ Require all granted </Location> + # # Sympa pretty urls + # RewriteEngine on + # # Do not redirect static, css and pictures + # RewriteCond %{REQUEST_URI} !^/(static|css|pictures)-sympa/.* + # RewriteCond %{REQUEST_URI} !^/sympasoap.* + # # Avoid redirect loops + # RewriteCond %{REQUEST_URI} !^/sympa.* + # # Prepend wws + # RewriteRule (.*) /sympa$1 [PT,QSA] + + # # Hide direct access to /wws with 307 to preserve data and method + # RewriteCond %{REQUEST_URI} ^/sympa.* + # RewriteCond %{REQUEST_URI} !^/(static|css|pictures)-sympa/.* + # RewriteCond %{REQUEST_URI} !^/sympasoap.* + # RewriteRule /sympa(.*) $1 [L,QSA,R=307] + </VirtualHost> # vim: syntax=apache ts=4 sw=4 sts=4 sr noet diff --git a/docker/sympa/entrypoint.sh b/docker/sympa/entrypoint.sh index 36a17b629f9daeb6fb1bef1ee5153d768a90c769..878103fba93b4ad1b239acbd43d482d7940e0d41 100755 --- a/docker/sympa/entrypoint.sh +++ b/docker/sympa/entrypoint.sh @@ -1,5 +1,6 @@ #!/bin/bash +a2disconf sympa ## Init sympa # Populate volume if [ -z "$(ls /etc/sympa/)" ]; then