[Catalyst] Fwd: Catalyst and Modperl question

Brandon Black blblack at gmail.com
Fri Jan 13 06:52:44 CET 2006


On 1/12/06, Balaji Srinivasan <balajione at gmail.com> wrote:
> Hi Everyone
> After giving up on deploying my catalyst application as a CGI script, I
> decided to try deploying it with modperl. I installed httpd-2.0.55 with
> modperl 2.0.0.2
> I added the following section in my Virtual host config in my httpd.conf:
>  # Set up your Catalyst app as a mod_perl 1.99x application in httpd.conf
>  PerlSwitches -I/var/www/html/MyApp/lib
>
>  # Preload your entire application
>  PerlModule MyApp
>
>  <VirtualHost *>
>
>
>  ServerName myapp.hostname.com
>  DocumentRoot /var/www/html # I need to still serve my other static pages.
>
>
>  <Location /MyApp>
>
>  SetHandler modperl
>  PerlResponseHandler MyApp
>  </Location>
> </VirtualHost>
>
> Now when I do
> http://localhost/MyApp/foo
>  (where foo was my action), it gives an error saying I am trying to access
>
> a directory.
> I tried various combinations of location for the app vs the Location
> attribute etc. Nothing worked.
> I would appreciate any help in this regard.
> Thanks
> Balaji
>

It looks correct at a glance.  Are you sure that the mod_perl shared
module is being loaded by apache at all?  There should be a line
somewhere in one of your active apache config files that looks roughly
like:

LoadModule perl_module modules/mod_perl.so

-- Brandon



More information about the Catalyst mailing list