[pen] fix configuration for httpd 2.4, #871450

Remi Collet remi at fedoraproject.org
Tue Jan 8 13:21:44 UTC 2013


commit 16651fd1a9e192f002af8f155862977097d3028c
Author: Remi Collet <remi at fedoraproject.org>
Date:   Tue Jan 8 14:21:38 2013 +0100

    fix configuration for httpd 2.4, #871450

 pen.httpd |    7 +++++++
 pen.spec  |    5 ++++-
 2 files changed, 11 insertions(+), 1 deletions(-)
---
diff --git a/pen.httpd b/pen.httpd
index 9cc6713..916d22c 100644
--- a/pen.httpd
+++ b/pen.httpd
@@ -2,8 +2,15 @@ ScriptAlias /pen/ /var/www/pen/
 <Directory /var/www/pen/>
         DirectoryIndex penctl.cgi
         Options ExecCGI
+    <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
+    </IfModule>
 </Directory>
 
diff --git a/pen.spec b/pen.spec
index 3818a87..773f9de 100644
--- a/pen.spec
+++ b/pen.spec
@@ -1,6 +1,6 @@
 Name:           pen
 Version:        0.18.0
-Release:        8%{?dist}
+Release:        9%{?dist}
 Summary:        Load balancer for "simple" tcp based protocols such as http or smtp
 
 Group:          Applications/Internet
@@ -57,6 +57,9 @@ done
 
 
 %changelog
+* Tue Jan  8 2013 Remi Collet <rcollet at redhat.com> - 0.18.0-9
+- fix configuration for httpd 2.4, #871450
+
 * Fri Jul 20 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.18.0-8
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
 


More information about the scm-commits mailing list