[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cobalt-users] Re: [rt-users] Using RT w/ Perl::Mason on Cobalt with Virtual Host
- Subject: [cobalt-users] Re: [rt-users] Using RT w/ Perl::Mason on Cobalt with Virtual Host
- From: Josh Kuperman <josh@xxxxxxxxxxxxxxxxxx>
- Date: Thu Aug 8 15:33:44 2002
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
I tried as you suggested and it made one problem very clear. With the virtual host entry defined as follows.
NameVirtualHost 10.0.1.195
<VirtualHost 10.0.1.195>
ServerName support.x.y.us
ServerAdmin admin
DocumentRoot /home/opt/rt2/WebRT/html
ServerAlias support.x.y.us support.x.org
PerlModule Apache::DBI
PerlFreshRestart On
PerlRequire /opt/rt2/bin/webmux.pl
<Location />
SetHandler perl-script
PerlHandler RT::Mason
</Location>
</VirtualHost>
I wound up with errors from PERL because I built RT to run against the
perl installation in /opt/bin/perl but the server is running against
the /usr/bin/perl because my cobalt server is not easily updateable to
a contemporary version of perl - all of the web interface that
distinguishes a Cobalt Server is tied to the outdated perl. As such I
doubt I can get it to work unless there is a way to tell Apache to use
a different version of Perl for a virtual host or perhaps I could give
fastcgi a try. The basic error now is no Apache::DBI in @INC etc.
On Thu, Aug 08, 2002 at 08:59:34AM +1000, Phil Homewood wrote:
> Josh Kuperman wrote:
> > below. Since I want to use my RT instalation I changed the document
> > root to /home/opt/rt2/WebRT/html. If I specify the location block for
> > the root, i.e. <Location />, then Mason complains that the component
> > is outside of root.
>
> You need <Location /> -- Location refers to URL-space, not
> filesystem-space.
>
> > ErrorDocument 401 /error/401-authorization.html
> > ErrorDocument 403 /error/403-forbidden.html
> > ErrorDocument 404 /error/404-file-not-found.html
> > ErrorDocument 500 /error/500-internal-server-error.html
> > AliasMatch ^/~([^/]+)(/(.*))? /home/opt/rt2/WebRT/web/$3
> > AddHandler cgi-wrapper .cgi
> > AddHandler cgi-wrapper .pl
>
> Try commenting these out, for a start...
>
> > #PerlModule Apache::DBI
>
> .... and uncommenting this one, and see what happens.
>
> (Caveat: I am RaQ-ignorant; the above suggestions are
> purely from an RT perspective.)
> --
> Phil Homewood, Systems Janitor, www.snapgear.com
> pdh@xxxxxxxxxxxx Ph: +61 7 3435 2810 Fx: +61 7 3891 3630
> SnapGear - Custom Embedded Solutions and Security Appliances
>
> _______________________________________________
> rt-users mailing list
> rt-users@xxxxxxxxxxxxxx
> http://lists.fsck.com/mailman/listinfo/rt-users
>
> Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm
--
Josh Kuperman
josh@xxxxxxxxxxxxxxxxxx