(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
59 lines
1.7 KiB
Plaintext
59 lines
1.7 KiB
Plaintext
# To use RT together with mod_fastcgi, available in the
|
|
# apache2-mod_fastcgi package, include this file with:
|
|
#
|
|
# Include /etc/request-tracker/apache2/apache2-fastcgi.conf
|
|
#
|
|
# into your Apache configuration file, or symlink it into
|
|
# /etc/apache2/conf.d.
|
|
#
|
|
# You will need to enable the Apache modules: fastcgi
|
|
# (via /usr/sbin/a2enmod fastcgi )
|
|
#
|
|
# Note: if you use apache2-mod_fcgid package, please be
|
|
# aware that you might need to remove or rename
|
|
# /etc/apache2/conf.d/mod_fcgid.conf
|
|
# as apache currently allows only one fastcgi process
|
|
# to run at the same time.
|
|
# In this case, just copy needed directives from
|
|
# /etc/apache2/conf.d/mod_fcgid.conf into this file
|
|
# ( FastCgiIpcDir as example) and symlink/copy it
|
|
# afterwards.
|
|
#
|
|
FastCgiServer /usr/sbin/rt-server.fcgi -processes 5 -idle-timeout 300
|
|
|
|
AddDefaultCharset UTF-8
|
|
|
|
Alias /rt/NoAuth/images/ /usr/share/request-tracker/html/NoAuth/images/
|
|
ScriptAlias /rt/ /usr/sbin/rt-server.fcgi/
|
|
|
|
PerlSetEnv RT_SITE_CONFIG /etc/request-tracker/RT_SiteConfig.pm
|
|
|
|
<Directory "/usr/share/request-tracker/html">
|
|
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>
|
|
|