# To use RT together with mod_fastcgi, available in the 
# libapache2-mod-fastcgi package, include this file with:
#
#   Include /etc/request-tracker3.8/apache2-fastcgi.conf
# 
# into your Apache configuration file, or symlink it into 
# /etc/apache2/conf.d.
#
# Note that if you use virtual hosts, you may have 
# to split these directives as the FastCgiServer directive
# can only be specified in the 'server config' context.
#

# Note that you will need to make readable the file
# /etc/request-tracker3.8/RT_SiteConfig.pm for the www-data user. 
#
# If you allow users to run php or cgi scripts as the www-data user
# this might result in you effectively letting them know your rt
# database password and username.

# You might want to enable this line
# AddDefaultCharset UTF-8

# These are set properly by the libapache2-mod-fastcgi package
# AddHandler fastcgi-script fcgi
# FastCgiIpcDir /var/run/fastcgi

# Tell FastCGI to trigger on the handler
FastCgiServer /usr/share/request-tracker3.8/libexec/mason_handler.fcgi

# Bypass FastCGI for images
Alias /rt/NoAuth/images /usr/share/request-tracker3.8/html/NoAuth/images

# Use the handler for everything else
ScriptAlias /rt /usr/share/request-tracker3.8/libexec/mason_handler.fcgi

<Location /rt/>
 DirectoryIndex index.html
</Location>

# Limit mail gateway access to localhost by default
<Location /rt/REST/1.0/NoAuth>
    Order Allow,Deny
    Allow from 127.0.0.1
</Location>

