]>
Commit | Line | Data |
---|---|---|
9446e82c | 1 | # $Id$ |
2 | # this config file enables RT in a VirtualHost | |
3 | ||
4 | <VirtualHost your.ip.address> | |
5 | ServerName your.rt.server.hostname | |
e1f10c02 | 6 | DocumentRoot /usr/share/rt/html |
9446e82c | 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 | |
9446e82c | 17 | |
18 | <Location /> | |
e098a304 SP |
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> | |
9446e82c | 27 | </VirtualHost> |
28 | ||
29 | # vim: filetype=apache ts=4 sw=4 et |