[Catalyst] $c->req->base doesn't actually return base

Jonathan Rockway jon at jrock.us
Wed Jan 24 16:13:39 GMT 2007


vti wrote:
> ScriptAlias /cgi-bin/ /var/www/pickup/cgi-bin/

I have a feeling that this should be
ScriptAlias / /path/to/yourapp/script/pickup_cgi.pl

You might also need a trailing slash; I'm never quite sure of that.

> =============================
> 
> In cgi-bin dir I put pickup.pl:
> 
> ============================= #!/usr/bin/perl -w
> 
> use strict; use lib '../lib'; use PickUp;
> 
> PickUp->run;

You're missing the "BEGIN { $ENV{CATALYST_ENGINE} ||= 'CGI' }" line,
which is important.  Why not just use the auto-generated script instead?


-- 
package JAPH;use Catalyst qw/-Debug/;($;=JAPH)->config(name => do {
$,.=reverse qw[Jonathan tsu rehton lre rekca Rockway][$_].[split //,
";$;"]->[$_].q; ;for 1..4;$,=~s;^.;;;$,});$;->setup;



More information about the Catalyst mailing list