[rt-users] Re: multiple web sites as well as rt

Thomas M. Payerle payerle at physics.umd.edu
Wed Apr 13 11:02:41 EDT 2005


>   8. multiple web sites as well as rt (Elaine .)
>
> hi
> How do i set up rt to run on a box with other
> programs-  they are not virtualhosts, i just have some
> other test stuff which when rt isn't active (3.22) is
> in DocRoot/folders and works via the web. My rt conf
> file is - and works but it transfers ALL for the
> server name to the different docroot and i'm not smart
> enough to work out what to do ..any help please ?
>
Follow instructions in last half of "Configuration" section and 
"Setting Up the Web Interface" sections of Installation Manual on the
Wiki.

Namely, install RT to some subdirectory of your document root, e.g. rt
so that need to use URL http://www.your.web.server/rt to access rt.
In the RT_SiteConfig file, set WebPath to that subdirectory, eg "/rt"


If you are not doing VirtualHosting, you can drop the VirtualHost wrapper
directives.
> <VirtualHost ip>
>   ServerName domainname
Remove this Document Root line
>   DocumentRoot /usr/local/rt3/share/html
and replace with (change /rt to the WebPath you used)
Alias /rt "/usr/local/rt3/share/html"
>   AddDefaultCharset UTF-8
>
The rewrite and set/perlHandler directives should go in a location block
(inside the virtual server block if using that), e.g.
     <location /rt>
  	AddDefaultCharset UTF-8
 	RewriteEngine On
 	RewriteRule ^(.*)/$ $1/index.html
 	SetHandler perl-script
 	PerlHandler RT::Mason
     </location>

>   # 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/local/rt3/bin/webmux.pl
>
Drop the <Location /> block, as is in the <Location /rt> block now
>   <Location />
>       SetHandler perl-script
>       PerlHandler RT::Mason
>   </Location>
> </VirtualHost>

Tom Payerle 
Dept of Physics				payerle at physics.umd.edu
University of Maryland			(301) 405-6973
College Park, MD 20742-4111		Fax: (301) 314-9525



More information about the rt-users mailing list