commit 46b8b72bf89231142315ecda875b69ecbc845aab
Author: Elan Ruusamäe <[email protected]>
Date:   Thu May 15 20:54:00 2014 +0300

    multi apache version support

 mailman.conf | 30 +++++++++++++++++++++++++++---
 mailman.spec |  2 +-
 2 files changed, 28 insertions(+), 4 deletions(-)
---
diff --git a/mailman.spec b/mailman.spec
index 96d69b9..306ca79 100644
--- a/mailman.spec
+++ b/mailman.spec
@@ -2,7 +2,7 @@
 # Conditional build:
 %bcond_with    umbrella_hack   # break anonimization (for use with moderated 
umbrella list of moderated lists)
 
-%define                rel     5
+%define                rel     7
 Summary:       The GNU Mailing List Management System
 Summary(es.UTF-8):     El Sistema de Mantenimiento de listas de GNU
 Summary(pl.UTF-8):     System Zarządzania Listami Pocztowymi GNU
diff --git a/mailman.conf b/mailman.conf
index 556ac68..8691236 100644
--- a/mailman.conf
+++ b/mailman.conf
@@ -3,13 +3,29 @@ Alias /mailman/pipermail/ /var/lib/mailman/archives/public/
 <Directory /var/lib/mailman/archives/public>
        Options Indexes MultiViews FollowSymLinks
        AllowOverride None
-       Allow from all
+       # Apache 2.x
+       <IfModule !mod_authz_core.c>
+               Order allow,deny
+               Allow from all
+       </IfModule>
+       # Apache 2.4
+       <IfModule mod_authz_core.c>
+               Require all granted
+       </IfModule>
 </Directory>
 
 Alias /mailman/icons/ /usr/lib/mailman/icons/
 <Directory /usr/lib/mailman/icons/>
        AllowOverride None
-       Allow from all
+       # Apache 2.x
+       <IfModule !mod_authz_core.c>
+               Order allow,deny
+               Allow from all
+       </IfModule>
+       # Apache 2.4
+       <IfModule mod_authz_core.c>
+               Require all granted
+       </IfModule>
 </Directory>
 
 ScriptAlias /mailman/ /usr/lib/mailman/cgi-bin/
@@ -18,7 +34,15 @@ ScriptAlias /mailman/ /usr/lib/mailman/cgi-bin/
        Options ExecCGI
        AllowOverride None
        AddHandler cgi-script .cgi
-       Allow from all
+       # Apache 2.x
+       <IfModule !mod_authz_core.c>
+               Order allow,deny
+               Allow from all
+       </IfModule>
+       # Apache 2.4
+       <IfModule mod_authz_core.c>
+               Require all granted
+       </IfModule>
 
 # Enable this section to use HTTP auth instead of adm.pw
 # NOTE: you won't be able to authorize with list password anymore.
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/mailman.git/commitdiff/46b8b72bf89231142315ecda875b69ecbc845aab

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to