[mantis] Fix apache configuration for 2.4 (bz #871418)
Gianluca Sforna
giallu at fedoraproject.org
Sun Dec 2 16:32:12 UTC 2012
commit 2d5a95e204a8334ce091f184100b3aa85da126e3
Author: Johan Cwiklinski <johan at x-tnd.be>
Date: Sun Dec 2 10:48:46 2012 +0100
Fix apache configuration for 2.4 (bz #871418)
mantis-httpd.conf | 27 ++++++++++++++++++---------
mantis.spec | 5 ++++-
2 files changed, 22 insertions(+), 10 deletions(-)
---
diff --git a/mantis-httpd.conf b/mantis-httpd.conf
index 82df7d8..4250706 100644
--- a/mantis-httpd.conf
+++ b/mantis-httpd.conf
@@ -13,15 +13,24 @@ Alias /mantis /usr/share/mantis
Options None
- # Do not change this unless the default administrator
- # login was removed; see documentation for details
- Order Deny,Allow
- Deny from All
- Allow from 127.0.0.1 # localhost
- Allow from ::1 # IPv6 variant of localhost
- # Use the following to let any client use mantis
- # Allow from All
-
+ <IfModule mod_authz_core.c>
+ # Apache 2.4
+ Require local
+ # Use the following to let any client use mantis
+ #Require all granted
+ </IfModule>
+ <IfModule !mod_authz_core.c>
+ # Apache 2.2
+ # Do not change this unless the default administrator
+ # login was removed; see documentation for details
+ Order Deny,Allow
+ Deny from All
+ Allow from 127.0.0.1 # localhost
+ Allow from ::1 # IPv6 variant of localhost
+ # Use the following to let any client use mantis
+ # Allow from All
+ </IfModule>
+
php_flag "register_globals" "off"
SetEnv MANTIS_CONFIG /etc/mantis/config_inc.php
</Directory>
diff --git a/mantis.spec b/mantis.spec
index 4b8739e..c9fbc8d 100644
--- a/mantis.spec
+++ b/mantis.spec
@@ -6,7 +6,7 @@
Summary: Web-based issue tracking system
Name: mantis
Version: 1.2.12
-Release: 1%{?dist}
+Release: 2%{?dist}
License: GPLv2+
Group: Applications/Internet
URL: http://www.mantisbt.org/
@@ -153,6 +153,9 @@ rm -rf "${RPM_BUILD_ROOT}"
%changelog
+* Sun Dec 02 2012 Johan Cwiklinski <johan AT x-tnd DOT be> - 1.2.12-2
+- Fix apache 2.4 configuration (bz #871418)
+
* Thu Nov 15 2012 Gianluca Sforna <giallu at gmail.com> - 1.2.12-1
- New upstream release
- Rebase patches
More information about the scm-commits
mailing list