Skip to content
Snippets Groups Projects
Verified Commit fe415445 authored by David Beniamine's avatar David Beniamine
Browse files

Avoid wrong sympa config

parent 89feea62
Branches
No related tags found
No related merge requests found
...@@ -26,6 +26,17 @@ ...@@ -26,6 +26,17 @@
</Location> </Location>
Alias /static-sympa /usr/share/sympa/static_content/ 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> <Location /sympasoap>
SetHandler "proxy:unix:/var/run/sympa/sympasoap.socket|fcgi://" SetHandler "proxy:unix:/var/run/sympa/sympasoap.socket|fcgi://"
Require all granted Require all granted
...@@ -37,6 +48,22 @@ ...@@ -37,6 +48,22 @@
Require all granted Require all granted
</Location> </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> </VirtualHost>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet # vim: syntax=apache ts=4 sw=4 sts=4 sr noet
#!/bin/bash #!/bin/bash
a2disconf sympa
## Init sympa ## Init sympa
# Populate volume # Populate volume
if [ -z "$(ls /etc/sympa/)" ]; then if [ -z "$(ls /etc/sympa/)" ]; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment