Moving RT off of the root URL

I have a new installation of RT 3.6.1 on RHEL 4.0 that is working
perfectly, as near as I can tell. It’s a 99% vanilla install with
the only difference being that I migrated my RT 3.0.1 database onto
the new server.

Apparently, there has been a change since RT 3.4 that makes it more
difficult to move RT from http://host.com/ to something like http://host.com/rt

Used to be, a simple alias in httpd.conf would do it.

It seems to me that having the RT ScriptAlias pointing to root is a
fundamentally bad idea unless RT is the only apache site that is
going to run on the server. In my case, doing this broke all of the
PHP and HTML sites!

I presume someone has already solved this problem. I would be
grateful if someone could point me to the detailed information on
what I need to do to make this change. I have spent the better part
of the last weekend experimenting with RT_SiteConfig.pm and
httpd.conf without much success. I’ve gotten it to mostly move over
but there were functions that still weren’t right. A complete,
detailed, tested. “official” procedure would be hugely appreciated at
this point

TIA!

I have a new installation of RT 3.6.1 on RHEL 4.0 that is working
perfectly, as near as I can tell. It’s a 99% vanilla install with
the only difference being that I migrated my RT 3.0.1 database onto
the new server.

Apparently, there has been a change since RT 3.4 that makes it more
difficult to move RT from http://host.com/ to something like http://host.com/rt

Used to be, a simple alias in httpd.conf would do it.

It seems to me that having the RT ScriptAlias pointing to root is a
fundamentally bad idea unless RT is the only apache site that is
going to run on the server. In my case, doing this broke all of the
PHP and HTML sites!

I presume someone has already solved this problem. I would be
grateful if someone could point me to the detailed information on
what I need to do to make this change. I have spent the better part
of the last weekend experimenting with RT_SiteConfig.pm and
httpd.conf without much success. I’ve gotten it to mostly move over
but there were functions that still weren’t right. A complete,
detailed, tested. “official” procedure would be hugely appreciated at
this point

TIA!

Apparently, there has been a change since RT 3.4 that makes it more
difficult to move RT from http://host.com/ to something like http://host.com/rt
I presume someone has already solved this problem. I would be
grateful if someone could point me to the detailed information on
what I need to do to make this change.

Hi,

I’m running 3.6.1 on debian from a subdirectory /rt3/ on my domain,
and from what I can tell from my config-files, this is all the
path-related settings there is:

RT_SiteConfig.pm:
Set($WebPath , “/rt3”);
Set($WebURL , $WebBaseURL . $WebPath . “/”);

httpd.conf:
<VirtualHost 1.2.3.4>
.
.
.
Alias /rt3 /usr/local/rt3/share/html
<Location /rt3>
AddDefaultCharset UTF-8
PerlModule Apache::DBI
PerlRequire /usr/local/rt3/bin/webmux.pl
SetHandler perl-script
PerlHandler RT::Mason
Options +ExecCGI

.
.

Make sure you stop and start apache each time you change something,
just in case something isn’t reloading.

  • Kristian

Hello Kristian

Thanks very much for responding. I built RT
following the instructions to the letter. It’s a
fastcgi setup and I don’t know that the changes
you suggested will work the way RT is
configured. I’m happy to go ahead and try if you
say it will work though… below is my current
httpd.conf which works perfectly except that RT
runs on the root URL and not http://localhost/rt

Thanks very much in advance!

RT Stuff

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

FastCgiIpcDir /tmp
FastCgiServer /opt/rt3/bin/mason_handler.fcgi -idle-timeout 120 -processes 4

NameVirtualHost *:80
<VirtualHost *:80>
DocumentRoot /opt/rt3/share/html/
AddDefaultCharset UTF-8
AddHandler fastcgi-script .fcgi

<Directory “/opt/rt3/share/html”>
Options FollowSymLinks ExecCGI
AllowOverride None

Alias /NoAuth/images /opt/rt3/share/html/NoAuth/images
ScriptAlias / /opt/rt3/bin/mason_handler.fcgi/

At 02:49 AM 9/21/2006, Kristian Rønningen wrote:>On Mon, 18 Sep 2006 06:07:00 -0700, you wrote:

Apparently, there has been a change since RT 3.4 that makes it more
difficult to move RT from http://host.com/ to
something like http://host.com/rt
I presume someone has already solved this problem. I would be
grateful if someone could point me to the detailed information on
what I need to do to make this change.

Hi,

I’m running 3.6.1 on debian from a subdirectory /rt3/ on my domain,
and from what I can tell from my config-files, this is all the
path-related settings there is:

RT_SiteConfig.pm:
Set($WebPath , “/rt3”);
Set($WebURL , $WebBaseURL . $WebPath . “/”);

httpd.conf:
<VirtualHost 1.2.3.4>
.
.
.
Alias /rt3 /usr/local/rt3/share/html
<Location /rt3>
AddDefaultCharset UTF-8
PerlModule Apache::DBI
PerlRequire /usr/local/rt3/bin/webmux.pl
SetHandler perl-script
PerlHandler RT::Mason
Options +ExecCGI

.
.

Make sure you stop and start apache each time you change something,
just in case something isn’t reloading.

  • Kristian

The rt-users Archives

Community help: http://wiki.bestpractical.com
Commercial support: sales@bestpractical.com

Discover RT’s hidden secrets with RT Essentials from O’Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

At 02:49 AM 9/21/2006, Kristian Rønningen wrote:>On Mon, 18 Sep 2006 06:07:00 -0700, you wrote:

Apparently, there has been a change since RT 3.4 that makes it more
difficult to move RT from http://host.com/ to
something like http://host.com/rt
I presume someone has already solved this problem. I would be
grateful if someone could point me to the detailed information on
what I need to do to make this change.

Hi,

I’m running 3.6.1 on debian from a subdirectory /rt3/ on my domain,
and from what I can tell from my config-files, this is all the
path-related settings there is:

RT_SiteConfig.pm:
Set($WebPath , “/rt3”);
Set($WebURL , $WebBaseURL . $WebPath . “/”);

httpd.conf:
<VirtualHost 1.2.3.4>
.
.
.
Alias /rt3 /usr/local/rt3/share/html
<Location /rt3>
AddDefaultCharset UTF-8
PerlModule Apache::DBI
PerlRequire /usr/local/rt3/bin/webmux.pl
SetHandler perl-script
PerlHandler RT::Mason
Options +ExecCGI

.
.

Make sure you stop and start apache each time you change something,
just in case something isn’t reloading.

  • Kristian

I do appreciate your willingness to help but as I
suspected, the changes you suggested do not work
in my fastcgi configuration. This is what I have
and it works fine except that it runs out of
http://localhost instead of http://localhost/rt
as I’d prefer. I’m sure this is just one or two
very small changes to get it to work,

Alias /rt/ “/opt/rt3/share/html/”
FastCgiIpcDir /tmp
FastCgiServer /opt/rt3/bin/mason_handler.fcgi -idle-timeout 120 -processes 4

NameVirtualHost *:80
<VirtualHost *:80>
ServerAdmin Frankie@Easyrider.com
ServerName patrol.vigilancemonitoring.com
DocumentRoot /opt/rt3/share/html/
AddDefaultCharset UTF-8
AddHandler fastcgi-script .fcgi

<Directory “/opt/rt3/share/html”>
Options FollowSymLinks ExecCGI
AllowOverride None

Alias /NoAuth/images /opt/rt3/share/html/NoAuth/images
ScriptAlias / /opt/rt3/bin/mason_handler.fcgi/

ScriptAlias / /opt/rt3/bin/mason_handler.fcgi/

Shouldn’t that maybe be ScriptAlias /rt [blah blah blah]?

Frank Saxton wrote:

At 02:49 AM 9/21/2006, Kristian R�nningen wrote:

Apparently, there has been a change since RT 3.4 that makes it more
difficult to move RT from http://host.com/ to something like
http://host.com/rt
I presume someone has already solved this problem. I would be
grateful if someone could point me to the detailed information on
what I need to do to make this change.

Hi,

I’m running 3.6.1 on debian from a subdirectory /rt3/ on my domain,
and from what I can tell from my config-files, this is all the
path-related settings there is:

RT_SiteConfig.pm:
Set($WebPath , “/rt3”);
Set($WebURL , $WebBaseURL . $WebPath . “/”);

httpd.conf:
<VirtualHost 1.2.3.4>
.
.
.
Alias /rt3 /usr/local/rt3/share/html
<Location /rt3>
AddDefaultCharset UTF-8
PerlModule Apache::DBI
PerlRequire /usr/local/rt3/bin/webmux.pl
SetHandler perl-script
PerlHandler RT::Mason
Options +ExecCGI

.
.

Make sure you stop and start apache each time you change something,
just in case something isn’t reloading.

  • Kristian

I do appreciate your willingness to help but as I suspected, the
changes you suggested do not work in my fastcgi configuration. This
is what I have and it works fine except that it runs out of
http://localhost instead of http://localhost/rt as I’d prefer. I’m
sure this is just one or two very small changes to get it to work,

Alias /rt/ “/opt/rt3/share/html/”
FastCgiIpcDir /tmp
FastCgiServer /opt/rt3/bin/mason_handler.fcgi -idle-timeout 120
-processes 4

NameVirtualHost *:80
<VirtualHost *:80>
ServerAdmin Frankie@Easyrider.com
ServerName patrol.vigilancemonitoring.com
DocumentRoot /opt/rt3/share/html/
AddDefaultCharset UTF-8
AddHandler fastcgi-script .fcgi

<Directory “/opt/rt3/share/html”>
Options FollowSymLinks ExecCGI
AllowOverride None

Alias /NoAuth/images /opt/rt3/share/html/NoAuth/images
ScriptAlias / /opt/rt3/bin/mason_handler.fcgi/


The rt-users Archives

Community help: http://wiki.bestpractical.com
Commercial support: sales@bestpractical.com

Discover RT’s hidden secrets with RT Essentials from O’Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

Drew Barnes
Applications Analyst
Raymond Walters College
University of Cincinnati

Well, it’s the “blah, blah, blah” that I need help with. I’m not the
brightest guy in the world but if it was a simple one line change I
wouldn’t be wasting everyone’s time.

I spent a couple of days trying all types of different combinations
and got it close to working but there were always problems. Since I
assume that very few people here are running RT off of the root URL,
I figured it would be faster to just ask the experts here. That was
3 weeks ago…

My current httpd config is at the bottom and my RT_SiteConfig.pm is
plain vanilla, per the install instructions.

I’ve done this with earlier versions of 3.4 and older RT with no
problems, making a couple of simple alias changes. Apparently
something changed in the way Best Practical built 3.5 or 3.6

Having a great deal of difficulty getting anyone to help me with this.

At 06:28 AM 9/22/2006, Drew Barnes wrote:

I believe the issue is a bug in the etc/initialdata / upgrade/content
file file.

We had an $RT::WebPath when we should have had a WebPath.

Unfortunately, the fix for existing installs is going to require some
database diving.

-jesseOn Sep 23, 2006, at 1:53 AM, Frank Saxton wrote:

Well, it’s the “blah, blah, blah” that I need help with. I’m not
the brightest guy in the world but if it was a simple one line
change I wouldn’t be wasting everyone’s time.

I spent a couple of days trying all types of different combinations
and got it close to working but there were always problems. Since
I assume that very few people here are running RT off of the root
URL, I figured it would be faster to just ask the experts here.
That was 3 weeks ago…

My current httpd config is at the bottom and my RT_SiteConfig.pm is
plain vanilla, per the install instructions.

I’ve done this with earlier versions of 3.4 and older RT with no
problems, making a couple of simple alias changes. Apparently
something changed in the way Best Practical built 3.5 or 3.6

Having a great deal of difficulty getting anyone to help me with this.

At 06:28 AM 9/22/2006, Drew Barnes wrote:

ScriptAlias / /opt/rt3/bin/mason_handler.fcgi/

Shouldn’t that maybe be ScriptAlias /rt [blah blah blah]?

Apparently, there has been a change since RT 3.4 that makes it
more
difficult to move RT from http://host.com/ to something like
http://host.com/rt
I presume someone has already solved this problem. I would be
grateful if someone could point me to the detailed information on
what I need to do to make this change.

RT_SiteConfig.pm:
Set($WebPath , “/rt3”);
Set($WebURL , $WebBaseURL . $WebPath . “/”);

I do appreciate your willingness to help but as I suspected, the
changes you suggested do not work in my fastcgi configuration.
This is what I have and it works fine except that it runs out of
http://localhost instead of http://localhost/rt as I’d prefer.
I’m sure this is just one or two very small changes to get it to
work,

Alias /rt/ “/opt/rt3/share/html/”
FastCgiIpcDir /tmp
FastCgiServer /opt/rt3/bin/mason_handler.fcgi -idle-timeout 120 -
processes 4

NameVirtualHost *:80
<VirtualHost *:80>
ServerAdmin Frankie@Easyrider.com
ServerName patrol.vigilancemonitoring.com
DocumentRoot /opt/rt3/share/html/
AddDefaultCharset UTF-8
AddHandler fastcgi-script .fcgi

<Directory “/opt/rt3/share/html”>
Options FollowSymLinks ExecCGI
AllowOverride None

Alias /NoAuth/images /opt/rt3/share/html/NoAuth/images
ScriptAlias / /opt/rt3/bin/mason_handler.fcgi/



The rt-users Archives

Community help: http://wiki.bestpractical.com
Commercial support: sales@bestpractical.com

Discover RT’s hidden secrets with RT Essentials from O’Reilly
Media. Buy a copy at http://rtbook.bestpractical.com

PGP.sig (186 Bytes)

At 07:45 AM 9/25/2006, Uldis Koskins wrote:

Frank Saxton wrote:

Well, it’s the “blah, blah, blah” that I need help with. I’m not the
brightest guy in the world but if it was a simple one line change I
wouldn’t be wasting everyone’s time.

I spent a couple of days trying all types of different combinations and
got it close to working but there were always problems. Since I assume
that very few people here are running RT off of the root URL, I figured
it would be faster to just ask the experts here. That was 3 weeks ago…

My current httpd config is at the bottom and my RT_SiteConfig.pm is
plain vanilla, per the install instructions.

I’ve done this with earlier versions of 3.4 and older RT with no
problems, making a couple of simple alias changes. Apparently something
changed in the way Best Practical built 3.5 or 3.6. I wouldn’t care so
much except that the current ScriptAlias setting breaks all of the other
web sites on this server :frowning:

Having a great deal of difficulty getting anyone to help me with this.

im running 3.6 here, so maybe u could try this thingie :slight_smile:

FastCgiIpcDir /tmp
FastCgiServer /opt/rt3/bin/mason_handler.fcgi -idle-timeout 360 -processes 2

ServerName bigserver.com
DocumentRoot /bigservers_stuff
<Directory /bigservers_stuff>
AllowOverride All

#<-- rt stuff
AddHandler fastcgi-script fcgi
<Directory /opt/rt3/share/html>
AddDefaultCharset UTF-8

Alias /NoAuth/images/ /opt/rt3/share/html/NoAuth/images/
ScriptAlias /theplacewhereiwanttoseeRT/ /opt/rt3/bin/mason_handler.fcgi/
<Directory /opt/rt3/bin/mason_handler.fcgi/>
SetHandler fastcgi-script
Options +ExecCGI

#–> rt stuff end


Regards,
Uldis Koskins

Thanks very much for getting back to me. Here’s mine which works
fine as http://localhost
The only big difference I see is changing ScriptAlias, which I did
and it sort of, kind of worked, but not really. Jesse indicated that
this is a bug in the code and if you’re not seeing the problem in 3.6
then it must be only 3.6.1 that has the problem.

I’ve invested/wasted a lot of time working on this with no success so
it’s sounding like the solution is to wait for the next release.

Very much appreciate your help though!

Alias /rt/ “/opt/rt3/share/html/”
FastCgiIpcDir /tmp
FastCgiServer /opt/rt3/bin/mason_handler.fcgi -idle-timeout 120 -processes 4

NameVirtualHost *:80
<VirtualHost *:80>
ServerName patrol.vigilancemonitoring.com
DocumentRoot /opt/rt3/share/html/
AddDefaultCharset UTF-8
AddHandler fastcgi-script .fcgi

<Directory “/opt/rt3/share/html”>
Options FollowSymLinks ExecCGI
AllowOverride None

Alias /NoAuth/images /opt/rt3/share/html/NoAuth/images
ScriptAlias / /opt/rt3/bin/mason_handler.fcgi/