]> git.pld-linux.org Git - packages/rt.git/commitdiff
- example configurations for RT
authorradek <radek@pld-linux.org>
Thu, 14 Oct 2004 21:43:38 +0000 (21:43 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    rt-apache_dir.conf -> 1.1
    rt-apache_vhost.conf -> 1.1

rt-apache_dir.conf [new file with mode: 0644]
rt-apache_vhost.conf [new file with mode: 0644]

diff --git a/rt-apache_dir.conf b/rt-apache_dir.conf
new file mode 100644 (file)
index 0000000..6c8e738
--- /dev/null
@@ -0,0 +1,26 @@
+# $Id$
+# this config file enables RT in http://host/rt/
+
+PerlModule Apache2
+PerlModule Apache::compat
+PerlModule Apache::DBI
+PerlRequire /usr/bin/webmux.pl
+
+RewriteEngine On
+#RewriteLogLevel 9
+#RewriteLog /var/log/httpd/rewrite.log
+RewriteCond %{REQUEST_URI}  ^/rt/
+RewriteRule ^(.*)/$         $1/index.html [PT,NS]
+
+Alias /rt "/usr/share/rt3/html"
+
+<Directory "/usr/share/rt3/html">
+    AddDefaultCharset UTF-8
+
+    PerlSetVar MasonArgsMethod CGI
+
+    SetHandler perl-script
+    PerlHandler RT::Mason
+</Directory>
+
+# vim: filetype=apache ts=4 sw=4 et
diff --git a/rt-apache_vhost.conf b/rt-apache_vhost.conf
new file mode 100644 (file)
index 0000000..8baa735
--- /dev/null
@@ -0,0 +1,25 @@
+# $Id$
+# this config file enables RT in a VirtualHost
+
+<VirtualHost your.ip.address>
+    ServerName your.rt.server.hostname
+    DocumentRoot /usr/share/rt3/html
+
+    AddDefaultCharset UTF-8
+
+    # these four lines apply to Apache2+mod_perl2 only:
+    PerlSetVar MasonArgsMethod CGI
+    PerlModule Apache2 Apache::compat
+    RewriteEngine On
+    RewriteRule ^(.*)/$ $1/index.html
+
+    PerlModule Apache::DBI
+    PerlRequire /usr/bin/webmux.pl
+
+    <Location />
+        SetHandler perl-script
+        PerlHandler RT::Mason
+    </Location>
+</VirtualHost>
+
+# vim: filetype=apache ts=4 sw=4 et
This page took 0.142261 seconds and 4 git commands to generate.