<VirtualHost *:8765>
        ServerName localhost

        <Directory />
            Options FollowSymLinks
            AllowOverride None
            Order deny,allow
            Deny from all
        </Directory>

        AddDefaultCharset UTF-8
        PerlSetEnv RT_SITE_CONFIG /opt/rt4/etc/RT_SiteConfig.pm
        PerlSwitches -I/opt/rt4/local/lib -I/opt/rt4/lib

        RedirectMatch permanent (.*)/$ $1/index.html

        DocumentRoot /opt/rt4/share/html
        <Directory /opt/rt4/share/html>
            Order allow,deny
            Allow from all

            SetHandler perl-script
            PerlResponseHandler Plack::Handler::Apache2
            PerlSetVar psgi_app /opt/rt4/sbin/rt-server
        </Directory>
</VirtualHost>
