diff options
author | Jonas Smedegaard <dr@jones.dk> | 2015-05-24 15:48:15 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2015-05-24 15:48:15 +0200 |
commit | 2d649ef7562cf9f87bee0958b2fd4fabbc80cb09 (patch) | |
tree | 78c38c70c591d0b7958e3be7827100f93341fbff /apache2/conf-available | |
parent | 6aa3edf0ca29d0b31198bbb931ed437be92e427e (diff) |
Migrate mailman snippets to Jessie Apache2.4 syntax. Fix avoid access to private mailman archives.
Diffstat (limited to 'apache2/conf-available')
-rw-r--r-- | apache2/conf-available/local-mailman-nonroot.conf | 3 | ||||
-rw-r--r-- | apache2/conf-available/local-mailman-root.conf | 13 | ||||
-rw-r--r-- | apache2/conf-available/local-mailman.conf | 12 |
3 files changed, 28 insertions, 0 deletions
diff --git a/apache2/conf-available/local-mailman-nonroot.conf b/apache2/conf-available/local-mailman-nonroot.conf new file mode 100644 index 0000000..5fb2e62 --- /dev/null +++ b/apache2/conf-available/local-mailman-nonroot.conf @@ -0,0 +1,3 @@ +ScriptAlias /mailman/ /usr/lib/cgi-bin/mailman/ + +RedirectMatch permanent ^/mailman/?$ /mailman/listinfo diff --git a/apache2/conf-available/local-mailman-root.conf b/apache2/conf-available/local-mailman-root.conf new file mode 100644 index 0000000..b108171 --- /dev/null +++ b/apache2/conf-available/local-mailman-root.conf @@ -0,0 +1,13 @@ +ScriptAlias /admin /usr/lib/cgi-bin/mailman/admin +ScriptAlias /admindb /usr/lib/cgi-bin/mailman/admindb +ScriptAlias /confirm /usr/lib/cgi-bin/mailman/confirm +ScriptAlias /create /usr/lib/cgi-bin/mailman/create +ScriptAlias /edithtml /usr/lib/cgi-bin/mailman/edithtml +ScriptAlias /listinfo /usr/lib/cgi-bin/mailman/listinfo +ScriptAlias /options /usr/lib/cgi-bin/mailman/options +ScriptAlias /private /usr/lib/cgi-bin/mailman/private +ScriptAlias /rmlist /usr/lib/cgi-bin/mailman/rmlist +ScriptAlias /roster /usr/lib/cgi-bin/mailman/roster +ScriptAlias /subscribe /usr/lib/cgi-bin/mailman/subscribe + +RedirectMatch permanent ^/$ /listinfo diff --git a/apache2/conf-available/local-mailman.conf b/apache2/conf-available/local-mailman.conf new file mode 100644 index 0000000..72fb945 --- /dev/null +++ b/apache2/conf-available/local-mailman.conf @@ -0,0 +1,12 @@ +<Directory /var/lib/mailman/archives/public> + Options Indexes FollowSymLinks + AllowOverride None + Require all granted +</Directory> + +<Directory /usr/share/images/mailman/> + Require all granted +</Directory> + +Alias /pipermail/ /var/lib/mailman/archives/public/ +Alias /images/mailman/ /usr/share/images/mailman/ |