[poweradmin] fix httpd config file to work with apache 2.2 and 2.4
Sven Lankes
slankes at fedoraproject.org
Thu Dec 27 12:14:08 UTC 2012
commit 1dd83a67531230e266645635dbb6b6dad4b24d8a
Author: Sven Lankes <sven at lank.es>
Date: Thu Dec 27 13:14:03 2012 +0100
fix httpd config file to work with apache 2.2 and 2.4
- fixes rhbz #871373
poweradmin.conf | 14 +++++++++++---
poweradmin.spec | 6 +++++-
2 files changed, 16 insertions(+), 4 deletions(-)
---
diff --git a/poweradmin.conf b/poweradmin.conf
index dbd8826..6a22116 100644
--- a/poweradmin.conf
+++ b/poweradmin.conf
@@ -1,6 +1,14 @@
Alias /poweradmin /usr/share/poweradmin
<Directory /usr/share/poweradmin/>
- 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>
+ # Apache 2.2
+ Order Deny,Allow
+ Deny from all
+ Allow from 127.0.0.1
+ Allow from ::1
+ </IfModule>
</Directory>
diff --git a/poweradmin.spec b/poweradmin.spec
index 0a7078b..4c30522 100644
--- a/poweradmin.spec
+++ b/poweradmin.spec
@@ -1,6 +1,6 @@
Name: poweradmin
Version: 2.1.6
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: A friendly web-based DNS administration tool for Bert Hubert's PowerDNS server
Group: Applications/Internet
@@ -55,6 +55,10 @@ ln -s %{_sysconfdir}/%{name}/config.inc.php %{buildroot}/%{_datadir}/%{name}/inc
%changelog
+* Thu Dec 27 2012 Sven Lankes <sven at lank.es> - 2.1.6-3
+- fix httpd config file to work with apache 2.2 and 2.4
+- fixes rhbz #871373
+
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.1.6-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
More information about the scm-commits
mailing list