[web-assets] add Apache 2.2 support to httpd config

T.C. Hollingsworth patches at fedoraproject.org
Tue Aug 27 23:50:25 UTC 2013


commit b1dd16e6e21595ca16e113adfe40cdd8e2a8a7fa
Author: T.C. Hollingsworth <tchollingsworth at gmail.com>
Date:   Tue Aug 27 16:40:11 2013 -0700

    add Apache 2.2 support to httpd config
    
    thanks to Remi Collet

 web-assets.conf |   20 ++++++++++++++++++--
 1 files changed, 18 insertions(+), 2 deletions(-)
---
diff --git a/web-assets.conf b/web-assets.conf
index 4fa3719..d35b3a4 100644
--- a/web-assets.conf
+++ b/web-assets.conf
@@ -2,7 +2,15 @@ Alias /_sysassets /usr/share/web-assets
 
 <Directory /usr/share/web-assets>
     Options -Indexes
-    Require all granted
+    <IfModule mod_authz_core.c>
+        # Apache 2.4
+        Require all granted
+    </IfModule>
+    <IfModule !mod_authz_core.c>
+        # Apache 2.2
+        Order deny,allow
+        Allow from all
+    </IfModule>
 </Directory>
 
 Alias /_sysassets/javascript /usr/share/javascript
@@ -10,5 +18,13 @@ Alias /_sysassets/js /usr/share/javascript
 
 <Directory /usr/share/javascript>
     Options -Indexes
-    Require all granted
+    <IfModule mod_authz_core.c>
+        # Apache 2.4
+        Require all granted
+    </IfModule>
+    <IfModule !mod_authz_core.c>
+        # Apache 2.2
+        Order deny,allow
+        Allow from all
+    </IfModule>
 </Directory>


More information about the scm-commits mailing list