]>
Commit | Line | Data |
---|---|---|
9446e82c | 1 | # $Id$ |
2 | # this config file enables RT in http://host/rt/ | |
3 | ||
4 | PerlModule Apache2 | |
5 | PerlModule Apache::compat | |
6 | PerlModule Apache::DBI | |
9446e82c | 7 | |
8 | RewriteEngine On | |
9 | #RewriteLogLevel 9 | |
10 | #RewriteLog /var/log/httpd/rewrite.log | |
11 | RewriteCond %{REQUEST_URI} ^/rt/ | |
12 | RewriteRule ^(.*)/$ $1/index.html [PT,NS] | |
13 | ||
e1f10c02 | 14 | Alias /rt "/usr/share/rt/html" |
9446e82c | 15 | |
e1f10c02 | 16 | <Directory "/usr/share/rt/html"> |
9446e82c | 17 | AddDefaultCharset UTF-8 |
18 | ||
19 | PerlSetVar MasonArgsMethod CGI | |
20 | ||
e098a304 SP |
21 | SetHandler modperl |
22 | PerlResponseHandler Plack::Handler::Apache2 | |
23 | PerlSetVar psgi_app /usr/sbin/rt-server | |
24 | <Perl> | |
25 | use Plack::Handler::Apache2; | |
26 | Plack::Handler::Apache2->preload("/usr/sbin/rt-server"); | |
27 | </Perl> | |
28 | ||
9446e82c | 29 | </Directory> |
30 | ||
31 | # vim: filetype=apache ts=4 sw=4 et |