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

Fix apache2 config for sympa 6.2.60

parent fe415445
Branches
No related tags found
No related merge requests found
......@@ -20,50 +20,35 @@
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
<Location />
DirectoryIndex disabled
SetHandler "proxy:unix:/var/run/sympa/wwsympa.socket|fcgi://"
Require all granted
</Location>
<Location /static-sympa>
SetHandler none
Require all granted
</Location>
Alias /static-sympa /usr/share/sympa/static_content/
Alias /css-sympa /var/lib/sympa/css
<Directory /var/lib/sympa/css>
<Location /css-sympa>
SetHandler none
Require all granted
</Directory>
</Location>
Alias /css-sympa /var/lib/sympa/css
Alias /pictures-sympa /var/lib/sympa/pictures
<Directory /var/lib/sympa/pictures>
<Location /picture-sympa>
SetHandler none
Require all granted
</Directory>
</Location>
Alias /pictures-sympa /var/lib/sympa/pictures
<Location /sympasoap>
SetHandler "proxy:unix:/var/run/sympa/sympasoap.socket|fcgi://"
Require all granted
</Location>
<Location /sympa>
SetHandler "proxy:unix:/var/run/sympa/wwsympa.socket|fcgi://"
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment