[phplogcon] fix configuration file for httpd 2.4, #871461

Remi Collet remi at fedoraproject.org
Mon Jan 7 10:30:34 UTC 2013


commit f00480e7135e1f6f0eac3df157898e7c8d93f3f9
Author: Remi Collet <remi at fedoraproject.org>
Date:   Mon Jan 7 11:30:22 2013 +0100

    fix configuration file for httpd 2.4, #871461

 phplogcon-httpd.conf |   13 ++++++++++---
 phplogcon.spec       |    5 ++++-
 2 files changed, 14 insertions(+), 4 deletions(-)
---
diff --git a/phplogcon-httpd.conf b/phplogcon-httpd.conf
index accb722..821085f 100644
--- a/phplogcon-httpd.conf
+++ b/phplogcon-httpd.conf
@@ -2,9 +2,16 @@
 Alias /phplogcon /usr/share/phplogcon/
 
 <Directory /usr/share/phplogcon>
-    Order Deny,Allow
-    Deny from All
-    Allow from 127.0.0.1 localhost
+    <IfModule mod_authz_core.c>
+        # Apache 2.4
+        Require local
+    </IfModule>
+    <IfModule !mod_authz_core.c>
+        # Apache 2.2
+        Order Deny,Allow
+        Deny from All
+        Allow from 127.0.0.1 localhost
+    </IfModule>
     ErrorDocument 403 "Access denied per /etc/httpd/conf.d/phplogcon.conf."
 </Directory>
 
diff --git a/phplogcon.spec b/phplogcon.spec
index ca154b7..a645d11 100644
--- a/phplogcon.spec
+++ b/phplogcon.spec
@@ -1,7 +1,7 @@
 Summary: A syslog data viewer for the web
 Name: phplogcon
 Version: 2.1.6
-Release: 8.beta%{?dist}
+Release: 9.beta%{?dist}
 License: GPLv3+
 Group: Applications/Internet
 URL: http://www.phplogcon.com/
@@ -52,6 +52,9 @@ rm -rf %{buildroot}
 
 
 %changelog
+* Mon Jan  7 2013 Remi Collet <rcollet at redhat.com> - 2.1.6-9.beta
+- fix configuration file for httpd 2.4, #871461
+
 * Sat Jul 21 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.1.6-8.beta
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
 


More information about the scm-commits mailing list