Moving RT3 off the web server root

I have no experience with mod_perl or HTML::Mason, but I didn’t think
this would be very hard. I finally got RT3.0.6 working on RH 9
(whew!) but I wan’t the URL to be /rt so I can do other things on the
same web server. Right now RT has taken / over from following the
install instructions.

I’ve been messing around with the httpd.conf, but I can’t seem to get
anything to work. Does anybody have an RT at some other url
(sub-directory-like) that could let me have a peek at their httpd.conf
and/or whatever other config files you had to modify?

TIA,
Barry Roberts

Barry Roberts wrote:

I have no experience with mod_perl or HTML::Mason, but I didn’t think
this would be very hard. I finally got RT3.0.6 working on RH 9
(whew!) but I wan’t the URL to be /rt so I can do other things on the
same web server. Right now RT has taken / over from following the
install instructions.

I’ve been messing around with the httpd.conf, but I can’t seem to get
anything to work. Does anybody have an RT at some other url
(sub-directory-like) that could let me have a peek at their httpd.conf
and/or whatever other config files you had to modify?

httpd.conf fragment:

Alias /rt /opt/rt3/share/html
PerlModule Apache2 Apache::DBI
PerlRequire /opt/rt3/bin/webmux.pl
<Directory /opt/rt3/share/html>
Order allow,deny
Allow from all
Options All
AllowOverride All
AddDefaultCharset UTF-8
<Files *.html>
SetHandler perl-script
PerlHandler RT::Mason


<Directory /opt/rt3/share/html/Ticket/Attachment>
SetHandler perl-script
PerlHandler RT::Mason

<Directory /opt/rt3/share/html/SelfService/Attachment>
SetHandler perl-script
PerlHandler RT::Mason

<Directory /opt/rt3/share/html/REST>
SetHandler perl-script
PerlHandler RT::Mason

You also need to set WebPath appropriately in RT_Config.pm or
RT_SiteConfig.pm

Max.

You should just have to modify the $WebBaseURL variable in your
rt-config.pm file to point to the new location. i.e.

Set($WebBaseURL,"http://some.webserver.org/rt_subdirectory);

Hope that helps.

Joshua Colson

signature.asc (189 Bytes)

Barry Roberts wrote:

I have no experience with mod_perl or HTML::Mason, but I didn’t think
this would be very hard. I finally got RT3.0.6 working on RH 9
(whew!) but I wan’t the URL to be /rt so I can do other things on the
same web server. Right now RT has taken / over from following the
install instructions.

I’ve been messing around with the httpd.conf, but I can’t seem to get
anything to work.

Try putting the RT related stuff into a section:

<Directory /full/system/path/to/dir/>
SetHandler … (what’s in the example’s VirtualHost config

Alias /web-dir/ /full/system/path/to/dir/

Then you need to update a variable in the RT configuration to tell
RT to prefix all paths with /web-dir/

If using virtual host, simply change the value of the
Directive and also update the var in the RT config file.

Note: I have not tried this, I justguess it works.

Hope it helps.

Jan

Does anybody have an RT at some other url
(sub-directory-like) that could let me have a peek at their httpd.conf
and/or whatever other config files you had to modify?

TIA,
Barry Roberts


rt-users mailing list
rt-users@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-users

Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm

Jan Algermissen http://www.topicmapping.com
Consultant & Programmer http://www.gooseworks.org

Barry -

The setup we use here is quite simple. The server that I run RT on
handles our helpdesk requests as well as other development applications.
To keep RT separate from all the other things on the server, I simply
added the following lines to httpd.conf (along with similar entries for
our monitoring system, SQL admin pages, etc):

Alias /rt “/var/rt3/share/html”

<Directory “/var/rt3”>
PerlModule Apache::DBI
PerlRequire /var/rt3/bin/webmux.pl
SetHandler perl-script
PerlHandler RT::Mason

In my case, RT is installed in /var/rt3 (not the usual /opt/rt3), and
the web interface is available via http://server/rt/. Replace paths as
necessary for your system.

If you’d rather have RT continue being the “root” of the server, you
could move it to a tag and add more Ips to your server.
There are several HOWTOs on that subject - I’ll leave that to you and
Google. :slight_smile:

–Ryan Conley
rconley@equala.com
System Administrator
The Equala Communications Group
http://www.equala.comFrom: rt-users-bounces@lists.fsck.com
[mailto:rt-users-bounces@lists.fsck.com] On Behalf Of Jan Algermissen
Sent: Wednesday, November 05, 2003 10:14 AM
To: Barry Roberts
Cc: rt-users@lists.fsck.com
Subject: Re: [rt-users] Moving RT3 off the web server root

Barry Roberts wrote:

I have no experience with mod_perl or HTML::Mason, but I didn’t think
this would be very hard. I finally got RT3.0.6 working on RH 9
(whew!) but I wan’t the URL to be /rt so I can do other things on the
same web server. Right now RT has taken / over from following the
install instructions.

I’ve been messing around with the httpd.conf, but I can’t seem to get
anything to work.

Try putting the RT related stuff into a section:

<Directory /full/system/path/to/dir/>
SetHandler … (what’s in the example’s VirtualHost config

Alias /web-dir/ /full/system/path/to/dir/

Then you need to update a variable in the RT configuration to tell
RT to prefix all paths with /web-dir/

If using virtual host, simply change the value of the
Directive and also update the var in the RT config file.

Note: I have not tried this, I justguess it works.

Hope it helps.

Jan

Does anybody have an RT at some other url
(sub-directory-like) that could let me have a peek at their httpd.conf
and/or whatever other config files you had to modify?

TIA,
Barry Roberts


rt-users mailing list
rt-users@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-users

Have you read the FAQ? The RT FAQ Manager lives at
http://fsck.com/rtfm

Jan Algermissen http://www.topicmapping.com
Consultant & Programmer http://www.gooseworks.org
rt-users mailing list
rt-users@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-users

Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm

You’ll need to make some changes in etc/RT_SiteConfig.pm as well - RT
generates URLs for some correspondence, and the engine needs to know
where the “real world” can find it. The server I use RT on is strictly
an internal system, with an IP of 192.168.0.89. To access the web
interface, users go to http://192.168.0.89/rt (configured in Apache, see
previous message).

Any URLs that are generated by RT are built using the two pieces of
information below.

If you’re putting the web ui somewhere other than at the root of your

server

$WebPath requires a leading / but no trailing /

Set($WebPath , “/rt”);

This is the Scheme, server and port for constructing urls to webrt

$WebBaseURL doesn’t need a trailing /

Set($WebBaseURL , “http://192.168.0.89”);

For example, when a user submits a ticket, they get an auto-reply with
the ticket number and a URL they can click on to view the ticket’s
progress:
<URL: http://192.168.0.89/rt/Ticket/Display.html?id=7348 >

That information is formed strictly from the configuration in
RT_SiteConfig.pm. Any inaccurate information here will only
inconvenience the user - RT will still function regardless of the
information here.

–Ryan Conley
rconley@equala.com
System Administrator
The Equala Communications Group
http://www.equala.com-----Original Message-----
From: John Schubert [mailto:jschubert@linearcorp.com]
Sent: Wednesday, November 05, 2003 10:16 AM
To: Ryan Conley
Subject: Re: [rt-users] Moving RT3 off the web server root

On Wed, 5 Nov 2003 09:58:46 -0500 “Ryan Conley” rconley@equala.com kindly wrote:

To keep RT separate from all the other things on the
server, I simply
added the following lines to httpd.conf (along with
similar entries for
our monitoring system, SQL admin pages, etc):

Alias /rt “/var/rt3/share/html”

<Directory “/var/rt3”>
PerlModule Apache::DBI
PerlRequire /var/rt3/bin/webmux.pl
SetHandler perl-script
PerlHandler RT::Mason

Did you also edit any config files for RT? I’m curious if
I can just change the above parameters you listed (which I
understand), without changing RT (which I am slowly
learning) config file(s).

John

The setup we use here is quite simple. The server that I run RT on
handles our helpdesk requests as well as other development applications.
To keep RT separate from all the other things on the server, I simply
added the following lines to httpd.conf (along with similar entries for
our monitoring system, SQL admin pages, etc):

Alias /rt “/var/rt3/share/html”

<Directory “/var/rt3”>
PerlModule Apache::DBI
PerlRequire /var/rt3/bin/webmux.pl
SetHandler perl-script
PerlHandler RT::Mason

In my case, RT is installed in /var/rt3 (not the usual /opt/rt3), and

My apologies for dragging up an old subject, however I saved this one to
try out later. I tried removing the virtual host tag in httpd.conf and
just use the directory tags you have above (replacing var with opt for
my standard install) and it broke RT. It went back to the %% gobbility
goop(which indicates its not parsing the perl). Is there something else
I missed?

John