[Catalyst] Non-virtualhost environment

Aaron Peterson dopplecoder at gmail.com
Mon Nov 21 14:01:08 CET 2005


On 11/21/05, Sean Davis <sdavis2 at mail.nih.gov> wrote:
> This is a naïve question, but I'll ask.  I want to develop a simple
> application that will live at a location like:
>
> www.example.com/application/
>
> rather than www.example.com.  I know that I can make location matches using
> path matching, but the catalyst default is SO NICE (i.e., not having to
> specify anything about the path for the method)!  Is there a way to define
> the "www.example.com/application/" as the base URL for location matching?

I believe if you're using apache, making your config look like this works fine:

<Perl>
   use lib qw( /pat/to/catalyst/app/lib );
</Perl>
PerlModule AppName

Alias /application /path/to/catalyst/app/root
<Directory /path/to/catalyst/app/root>
   SetHandler perl-script
   PerlHandler AppName
</Directory>

Aaron



More information about the Catalyst mailing list