[ipcalculator] fix configuration file for httpd 2.4, #871402

Remi Collet remi at fedoraproject.org
Fri Jan 4 19:00:18 UTC 2013


commit 2f5aa3cda3e641d51337caeb1d0b090ad702c743
Author: Remi Collet <remi at fedoraproject.org>
Date:   Fri Jan 4 20:00:09 2013 +0100

    fix configuration file for httpd 2.4, #871402

 ipcalculator.conf |   12 +++++++++---
 ipcalculator.spec |    5 ++++-
 2 files changed, 13 insertions(+), 4 deletions(-)
---
diff --git a/ipcalculator.conf b/ipcalculator.conf
index f355f68..4b2237d 100644
--- a/ipcalculator.conf
+++ b/ipcalculator.conf
@@ -3,7 +3,13 @@ Alias /ipcalculator /usr/share/ipcalculator/
     DirectoryIndex ipcalculator.cgi
     Options ExecCGI
     AddHandler cgi-script cgi
-    order deny,allow
-    deny from all
-    allow from 127.0.0.1
+    <IfModule mod_authz_core.c>
+        # Apache 2.4
+        Require local
+    </IfModule>
+    <IfModule !mod_authz_core.c>
+        order deny,allow
+        deny from all
+        allow from 127.0.0.1
+    </IfModule>
 </Directory>
diff --git a/ipcalculator.spec b/ipcalculator.spec
index b0b2e0b..2bd2dbf 100644
--- a/ipcalculator.spec
+++ b/ipcalculator.spec
@@ -1,6 +1,6 @@
 Name:           ipcalculator
 Version:        0.41
-Release:        12%{?dist} 
+Release:        13%{?dist}
 Summary:        A utility for computing broadcast, network, mask, and host ranges
 
 Group:          Applications/Internet
@@ -89,6 +89,9 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %changelog
+* Fri Dec  4 2013 Remi Collet <rcollet at redhat.com> - 0.41-13
+- fix configuration file for httpd 2.4, #871402
+
 * Thu Jul 19 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.41-12
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
 


More information about the scm-commits mailing list