RT 3.4.5 FastCGIexternal Apache2

I have just installed a “captive” RT 3.4.5 using FastCgiExternalServer
hosted on Apache/2.0.52. (perl 5.8.7, mysql Ver 5.0.18)

And it’s sorta working: that is it will run, but something between the
apache and RT urls is just really strange. I have tried variations on
all sorts of the example “How To RT … Apache2” and haven’t found the
magic bean. Also, I am very vanilla in the RT_SiteConfig.pm in that
I am using the defaults for the $Web… things. (I did try fiddling
with those, but things got worse instead of better!)

I have the RT in a
and it works IF I use two (2) slashes at the end of the URL!
Example:

Anybody got a clue about this?
All the stuff that I thougt would be really problematic
(FastCgiExternalServer for example) turned out to be rather easy.

Bill R. Williams
------------------------ ETSU Library Systems

Replying to my own post (request for HELP!!) to suppliment the
original information.

It appears that the need for the double slash after the hostname

  • http://rt.mydomain.ext//
    is introduced/needed somewhere in RT. Possbily a redirection?
    Why do I say this? (And I could be jumping to the wrong conclusion…)

I modified my apache definition from:

to answer on port 8008:
Listen 8008

NO other changes.

And these:
http://rt.mydomain.ext:8008
http://rt.mydomain.ext:8008/index.html
work like a charm.

SURELY somebody has encountered this before.
Maybe one of you on the rt-devel list knows something?

Just to be complete, here are the actual Apache directives I am using,
but with fake host/IP.domain:
LoadModule fastcgi_module modules/mod_fastcgi.so

(FastCgiExternalServer – ONE LONG LINE in .conf file)

FastCgiExternalServer /usr/local/RT/rt/bin/mason_handler.fcgi
-host localhost:50080 -idle-timeout 120

Listen 8008
<VirtualHost 192.168.200.200:8008>
UseCanonicalName Off
ServerName rt.mydomain.ext

    ErrorLog logs/rt.error_log
    CustomLog logs/rt.access_log combined

    DocumentRoot /usr/local/RT/rt/share/html
    AddHandler fastcgi-script fcgi
    ScriptAlias / /usr/local/RT/rt/bin/mason_handler.fcgi/

I appreciate any help.
Bill R. Williams
------------------------ ETSU Library SystemsOn Thu, Feb 16, 2006 at 04:16:10PM -0500, Bill R. Williams wrote:

I have just installed a “captive” RT 3.4.5 using FastCgiExternalServer
hosted on Apache/2.0.52. (perl 5.8.7, mysql Ver 5.0.18)

And it’s sorta working: that is it will run, but something between the
apache and RT urls is just really strange. I have tried variations on
all sorts of the example “How To RT … Apache2” and haven’t found the
magic bean. Also, I am very vanilla in the RT_SiteConfig.pm in that
I am using the defaults for the $Web… things. (I did try fiddling
with those, but things got worse instead of better!)

I have the RT in a
and it works IF I use two (2) slashes at the end of the URL!
Example:

Anybody got a clue about this?
All the stuff that I thougt would be really problematic
(FastCgiExternalServer for example) turned out to be rather easy.

It appears that the need for the double slash after the hostname

  • http://rt.mydomain.ext//
    is introduced/needed somewhere in RT. Possbily a redirection?
    Why do I say this? (And I could be jumping to the wrong conclusion…)

Also, I am very vanilla in the RT_SiteConfig.pm in that
I am using the defaults for the $Web… things. (I did try fiddling
with those, but things got worse instead of better!)

What are $WebPath and $WebBaseURL set to?

Michael
Michael S. Liebman m-liebman@northwestern.edu
http://msl521.freeshell.org/
“I have vision and the rest of the world wears bifocals.”
-Paul Newman in “Butch Cassidy & the Sundance Kid”

Hi Michael,

Thanks for your response…

What are $WebPath and $WebBaseURL set to?
They are currently (as defined in the RT_Config.pm):
Set($WebPath , “”);
Set($WebBaseURL , “http://localhost”);
and just to be complete there are also …
Set($WebURL , $WebBaseURL . $WebPath . “/”);
Set($WebImagesURL , $WebPath . “/NoAuth/images/”);
Set($LogoURL , $WebImagesURL . “bplogo.gif”);

I tried variations (in RT_SiteConfig.pm) on:
$WebPath: Set($WebPath , “/”);
$WebBaseURL Set($WebBaseURL , “http://rt.mydomain.ext”);
and even piddled with the $WebURL (removing the . “/”).
And I ended up with pretty much the same problem.

My Apache’s default server(s) are port:80.
Using the default $Web… items we see these behaviors:
Default: 80
With the my Apache logs for
‘rt’ show GETs as related to “http://rt.mydomain.ext//”.
Only Change: 8008
With the my Apache logs for
‘rt’ show GETs as related to “http://rt.mydomain.ext:8008/”.

BTW: I also tried the various suggested Apache ‘RedirectMatch…’
directives. Works the same with or without them.
Also FWIW: My Apache config specifies:
NameVirtualHost xxx.xxx.xxx.xxx:80

Summary: On default port (80) any URL which does not have the double
slash following the http://HOSTNAME will be redirected to the default
port 80 server which is NOT rt. Using an alternate port (8008) things
work as expected/desired: http://HOSTNAME:8008 will send me to ‘rt’.

Bill R. Williams brw@etsu.edu
------------------------ ETSU Library SystemsOn Fri, Feb 17, 2006 at 11:46:54AM -0500, Michael S. Liebman wrote:

On Fri, Feb 17, 2006 at 11:27:05AM -0500, Bill R. Williams wrote:

It appears that the need for the double slash after the hostname

  • http://rt.mydomain.ext//
    is introduced/needed somewhere in RT. Possbily a redirection?
    Why do I say this? (And I could be jumping to the wrong conclusion…)

On Thu, Feb 16, 2006 at 04:16:10PM -0500, Bill R. Williams wrote:

Also, I am very vanilla in the RT_SiteConfig.pm in that
I am using the defaults for the $Web… things. (I did try fiddling
with those, but things got worse instead of better!)

What are $WebPath and $WebBaseURL set to?

Michael

Michael S. Liebman m-liebman@northwestern.edu
http://msl521.freeshell.org/
“I have vision and the rest of the world wears bifocals.”
-Paul Newman in “Butch Cassidy & the Sundance Kid”