- adapt apache configuration to be able to run with mod_authz_core

(apache 2.4) and the old apache < 2.4 auth module
- also allow IPv6 addresses

OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/request-tracker?expand=0&rev=48
This commit is contained in:
Lars Vogdt
2016-01-23 11:58:01 +00:00
committed by Git OBS Bridge
parent f75620f8d8
commit e5d5258b9d
4 changed files with 36 additions and 4 deletions

View File

@@ -29,16 +29,30 @@ ScriptAlias /rt/ /usr/sbin/rt-server.fcgi/
PerlSetEnv RT_SITE_CONFIG /etc/request-tracker/RT_SiteConfig.pm
<Directory "/usr/share/request-tracker/html">
Order Deny,Allow
Allow from All
Options +ExecCGI
AddHandler fastcgi-script fcgi
DirectoryIndex index.html
<IfModule mod_authz_core.c>
Require all denied
</IfModule>
<IfModule !mod_authz_core.c>
Order Deny,Allow
Allow from all
</IfModule>
</Directory>
# Limit mail gateway access to localhost by default
<Location /rt/REST/1.0/NoAuth>
<IfModule mod_authz_core.c>
<RequireAny>
Require ip 127.0.0.1
Require ip ::1
</RequireAny>
</IfModule>
<IfModule !mod_authz_core.c>
Order Allow,Deny
Allow from 127.0.0.1
Allow from ::1
</IfModule>
</Location>

View File

@@ -4,9 +4,11 @@
# Include /etc/request-tracker/apache2/apache2-modperl2.conf
#
# into your Apache configuration file, in a virtual host section.
# or symlink it into /etc/apache2/conf.d.
#
# You will need to enable the Apache modules: perl, actions
# ( /usr/sbin/a2enmod perl; /usr/sbin/a2enmod actions )
# #
AddDefaultCharset UTF-8
@@ -24,8 +26,17 @@ Alias /rt /usr/share/request-tracker/html
# Limit mail gateway access to localhost by default
<Location /rt/REST/1.0/NoAuth>
<IfModule mod_authz_core.c>
<RequireAny>
Require ip 127.0.0.1
Require ip ::1
</RequireAny>
</IfModule>
<IfModule !mod_authz_core.c>
Order Allow,Deny
Allow from 127.0.0.1
Allow from ::1
</IfModule>
</Location>
<Perl>

View File

@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Sat Jan 23 11:51:18 UTC 2016 - lars@linux-schulserver.de
- adapt apache configuration to be able to run with mod_authz_core
(apache 2.4) and the old apache < 2.4 auth module
- also allow IPv6 addresses
-------------------------------------------------------------------
Mon Aug 17 09:25:13 UTC 2015 - lars@linux-schulserver.de

View File

@@ -1,7 +1,7 @@
#
# spec file for package request-tracker
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2011 Lars Vogdt
#
# All modifications and additions to the file contributed by third parties