]> git.pld-linux.org Git - packages/rt.git/blob - rt-apache_vhost.conf
- rel 2; fix perl 5.26 warning which rt treats as error
[packages/rt.git] / rt-apache_vhost.conf
1 # $Id$
2 # this config file enables RT in a VirtualHost
3
4 <VirtualHost your.ip.address>
5     ServerName your.rt.server.hostname
6     DocumentRoot /usr/share/rt/html
7
8     AddDefaultCharset UTF-8
9
10     # these four lines apply to Apache2+mod_perl2 only:
11     PerlSetVar MasonArgsMethod CGI
12     PerlModule Apache2 Apache::compat
13     RewriteEngine On
14     RewriteRule ^(.*)/$ $1/index.html
15
16     PerlModule Apache::DBI
17
18     <Location />
19         SetHandler modperl
20         PerlResponseHandler Plack::Handler::Apache2
21         PerlSetVar psgi_app /usr/sbin/rt-server
22      </Location>
23         <Perl>
24                 use Plack::Handler::Apache2;
25                 Plack::Handler::Apache2->preload("/usr/sbin/rt-server");
26         </Perl>
27 </VirtualHost>
28
29 # vim: filetype=apache ts=4 sw=4 et
This page took 0.083808 seconds and 3 git commands to generate.