From 488c9456306e9d498d8537bb93fa6792a2311d75 Mon Sep 17 00:00:00 2001
From: David Cook <dcook@prosentient.com.au>
Date: Mon, 13 Jan 2020 17:05:17 +1100
Subject: [PATCH] Bug 17464: Order deny,allow / Deny from all was deprecated in
 Apache 2.4 and is now a hard error

Patch change Apache access control from 2.2 to 2.4 directives.

Test plan:
0. Apply patch
1. Build Koha from source
2. Copy or symlink koha-dev/etc/koha-httpd.conf into your relevant
Apache directory.
3. Reload Apache
4. Note a lack of syntax errors regarding the "Order" directive

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Old syntax still valid with mod_access_compat, but not for long.
Works, no errors.

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
---
 etc/koha-httpd.conf | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/etc/koha-httpd.conf b/etc/koha-httpd.conf
index a139a8782f..2fe7df456e 100644
--- a/etc/koha-httpd.conf
+++ b/etc/koha-httpd.conf
@@ -31,8 +31,7 @@
 
    # Secure internal stuff
    <DirectoryMatch "__OPAC_WWW_DIR__/.*/(modules|xslt|includes)">
-      Order deny,allow
-      Deny from all
+      Require all denied
    </DirectoryMatch>
 
    <IfModule mod_gzip.c>
@@ -171,8 +170,7 @@
 
    # Secure internal stuff
    <DirectoryMatch "__INTRANET_WWW_DIR__/.*/(modules|xslt|includes)">
-      Order deny,allow
-      Deny from all
+      Require all denied
    </DirectoryMatch>
 
    <IfModule mod_gzip.c>
-- 
2.11.0