diff options
-rw-r--r-- | modules/sympa/templates/vhost_ml.conf | 10 | ||||
-rw-r--r-- | modules/sympa/templates/webapp_sympa.conf | 10 |
2 files changed, 18 insertions, 2 deletions
diff --git a/modules/sympa/templates/vhost_ml.conf b/modules/sympa/templates/vhost_ml.conf index c15ec069..11aa7ae5 100644 --- a/modules/sympa/templates/vhost_ml.conf +++ b/modules/sympa/templates/vhost_ml.conf @@ -8,5 +8,13 @@ Alias /static-sympa /var/lib/sympa/static_content <Directory /var/lib/sympa/static_content> - Require all granted + <IfModule mod_authz_core.c> + # Apache 2.4 + Require all granted + </IfModule> + <IfModule !mod_authz_core.c> + # Apache 2.2 + Order allow,deny + Allow from all + </IfModule> </Directory> diff --git a/modules/sympa/templates/webapp_sympa.conf b/modules/sympa/templates/webapp_sympa.conf index 2bde74e2..dbaba342 100644 --- a/modules/sympa/templates/webapp_sympa.conf +++ b/modules/sympa/templates/webapp_sympa.conf @@ -3,5 +3,13 @@ AddHandler fastcgi-script .fcgi DirectoryIndex wwsympa-wrapper.fcgi - Require all granted + <IfModule mod_authz_core.c> + # Apache 2.4 + Require all granted + </IfModule> + <IfModule !mod_authz_core.c> + # Apache 2.2 + Order allow,deny + Allow from all + </IfModule> </Directory> |