Subject: Re: apache2 + ap2-perl @INC problem
To: None <pkgsrc-users@netbsd.org>
From: George Georgalis <george@galis.org>
List: pkgsrc-users
Date: 04/28/2006 00:41:55
On Thu, Apr 27, 2006 at 11:04:19PM -0400, George Georgalis wrote:
>I'm not sure if this is an application, pkgsrc ...or my problem.
>
>I've got apache2 and ap2-perl installed from pkgsrc
>
>in my httpd.conf, I have
>
>LoadModule perl_module lib/httpd/mod_perl.so
>
><IfModule mod_perl.c>
> Alias /wcal/ /usr/local/www/vhost/alpha.dev.stage/webCal2.9.3/
> PerlRequire "/usr/local/www/vhost/alpha.dev.stage/webCal2.9.3/startup.pl"
> <Location /wcal>
> AllowOverride All
> SetHandler perl-script
> PerlHandler Apache::Registry
> PerlSendHeader On
># PerlRequire "/var/www/webcal/bin/startup.pl"
> Options +ExecCGI
> </Location>
></IfModule>
>
>Alias /wcal.img/ "/usr/local/www/vhost/alpha.dev.stage/htdoc/wcal.img/"
>
><Directory "/usr/local/www/vhost/alpha.dev.stage/htdoc/wcal.img">
> Options Indexes MultiViews
> AllowOverride All
> Order allow,deny
> Allow from all
></Directory>
>
That was old style httpd.conf, with apache2 + mod_perl you need
<IfModule mod_perl.c>
PerlSwitches -wT
PerlRequire "/usr/local/www/vhost/alpha.dev.stage/webCal2.9.3/startup.pl"
Alias /wcal /usr/local/www/vhost/alpha.dev.stage/webCal2.9.3/
<Directory /usr/local/www/vhost/alpha.dev.stage/webCal2.9.3>
AllowOverride All
SetHandler perl-script
PerlResponseHandler ModPerl::Registry
PerlOptions +ParseHeaders
Options +ExecCGI +FollowSymLinks
#PerlOutputFilterHandler Apache::FFF
</Directory>
</IfModule>
Alias /wcal.img "/usr/local/www/vhost/alpha.dev.stage/htdoc/wcal.img/"
<Directory "/usr/local/www/vhost/alpha.dev.stage/htdoc/wcal.img">
Options Indexes MultiViews FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
works.
// George
--
George Georgalis, systems architect, administrator <IXOYE><
http://galis.org/ cell:646-331-2027 mailto:george@galis.org