[rt-users] Using RT w/ Perl::Mason on Cobalt with Virtual Host

Josh Kuperman josh at saratoga.lib.ny.us
Thu Aug 8 13:59:38 EDT 2002


Oh my it seems to almost be working. I abandoned Perl and went with
the fastcgi option, which RT also supports. Now my virtual host section
for my support site looks like this. I copied many lines from
suggestions in the email archive. I believe those ScriptAliaseMatch
lines are important and also it needs to be noted that my server at
least will scream about a symlink, so I had to spell out /home/opt/rt2
instead of just /opt/rt2; this is a mild Cobalt idiosyncrasy.


NameVirtualHost 10.0.8.195
<VirtualHost 10.0.8.195>
ServerName support.x.y.us
ServerAdmin admin
DocumentRoot /home/opt/rt2/WebRT/html
ServerAlias support.saratoga.lib.ny.us support.sspl.org
AddHandler fastcgi-script fcgi
FastCgiServer    /home/opt/rt2/bin/mason_handler.fcgi
ScriptAliasMatch (.*/)$      /home/opt/rt2/bin/mason_handler.fcgi$1
ScriptAliasMatch (.*\.html)$ /home/opt/rt2/bin/mason_handler.fcgi$1
</VirtualHost>

The httpd log is complaining on a regular bases about some of the
scritps. Perhaps I need to do something, yet. Perhaps the module needs
to be updated. Any ideas are really appreciated.

Here are some of the log errors.

[Thu Aug  8 13:31:26 2002] [error] [client 192.168.1.20] FastCGI: server "/home/
opt/rt2/bin/mason_handler.fcgi" stderr:         HTML::Mason::Component::run('HTM
L::Mason::Component::FileBased=HASH(0x8c1dbe8)', 'Create', 1) called at /home/op
t/lib/perl5/site_perl/5.6.1/HTML/Mason/Request.pm line 654
[Thu Aug  8 13:31:26 2002] [error] [client 192.168.1.20] FastCGI: server "/home/
opt/rt2/bin/mason_handler.fcgi" stderr:         eval {...} called at /home/opt/l
ib/perl5/site_perl/5.6.1/HTML/Mason/Request.pm line 654
[Thu Aug  8 13:31:26 2002] [error] [client 192.168.1.20] FastCGI: server "/home/
opt/rt2/bin/mason_handler.fcgi" stderr:         HTML::Mason::Request::comp('HTML
::Mason::Request=HASH(0x8d36efc)', 'HASH(0x8d32264)', 'HTML::Mason::Component::F
ileBased=HASH(0x8c1dbe8)', 'Create', 1) called at /home/opt/lib/perl5/site_perl/
5.6.1/HTML/Mason/Request.pm line 160
[Thu Aug  8 13:31:26 2002] [error] [client 192.168.1.20] FastCGI: server "/home/
opt/rt2/bin/mason_handler.fcgi" stderr:         eval {...} called at /home/opt/l
ib/perl5/site_perl/5.6.1/HTML/Mason/Request.pm line 160
[Thu Aug  8 13:31:26 2002] [error] [client 192.168.1.20] FastCGI: server "/home/
opt/rt2/bin/mason_handler.fcgi" stderr:         HTML::Mason::Request::exec('HTML
::Mason::Request=HASH(0x8d36efc)', '/Admin/Queues/Modify.html', 'Create', 1) cal
led at /home/opt/lib/perl5/site_perl/5.6.1/HTML/Mason/Interp.pm line 244


-- 
Josh Kuperman                       
josh at saratoga.lib.ny.us





More information about the rt-users mailing list