File colplot-apache-Check-for-mod_access_compat.c.patch of Package colplot
From: Egbert Eich <eich@suse.com>
Date: Sat Aug 5 15:37:32 2017 +0200
Subject: [PATCH]colplot-apache: Check for mod_access_compat.c
Patch-mainline: never
Git-commit: 3473b3e662efccb955313f16c7c38891fd981213
References:
Signed-off-by: Egbert Eich <eich@suse.de>
Use new authz handling. Use the directives:
Order allow,deny
Allow from all
only when the compatibility module mod_access_compat.c is loaded.
Signed-off-by: Egbert Eich <eich@suse.com>
---
colplot-apache.conf | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/colplot-apache.conf b/colplot-apache.conf
index 1ebe459..e4cd21f 100644
--- a/colplot-apache.conf
+++ b/colplot-apache.conf
@@ -6,6 +6,11 @@ Alias /colplot "/var/www/colplot"
AllowOverride None
Options None
Options +followsymlinks +execcgi
- Order allow,deny
- Allow from all
+ <IfModule !mod_access_compat.c>
+ Require all granted
+ </IfModule>
+ <IfModule mod_access_compat.c>
+ Order allow,deny
+ Allow from all
+ </IfModule>
</Directory>