[Catalyst] application broke once installed under other than the
web root directory
Charles
cshtreck at yahoo.com
Mon Mar 22 17:04:27 GMT 2010
Could anyone point me to docs that say what needs to be changed to get the app to work when installed as an application in a pre-existing apache setup? my app is installed under http://myurl.com/myapp and can't run directly from "/" as this app is just one of many tools running on the webserver.
Thanks,
C
--- On Sun, 3/21/10, Charles <cshtreck at yahoo.com> wrote:
> From: Charles <cshtreck at yahoo.com>
> Subject: [Catalyst] application broke once installed under other than the web root directory
> To: Catalyst at lists.scsys.co.uk
> Date: Sunday, March 21, 2010, 1:18 PM
>
> I have finished development of my app using the built in
> server in the scripts dir. I have installed it and
> configured apache to let it run under http://myurl.com/myapp .
>
> The Root.pm index controller get's called and works (
> fetches db table data and returns via TT ) when I visit http://myurl.com/myapp. And the debug output is here:
>
> [debug] "GET" request for "/" from "x.x.x.x"
> [debug] Path is "/"
> [debug] Rendering template "welcome.tt2"
>
> However, when I try to go to http://myurl.com/myapp/foo/bar/2 , I get "page not
> found", and my debug output shows:
>
> [debug] "GET" request for "myapp/foo/bar/2" from "x.x.x.x"
> [debug] Path is "/"
> [debug] Arguments are "myapp/foo/bar/2"
>
> I tried setting __PACKAGE__->config( path =>
> '/myapp' );
> But that doesn't seem to have any effect.
>
> So, I guess I'd like to know how to set the Path above so
> that it will ( hopefully ) map to the correct controllers.
>
> This all worked just dandy when run via the server in the
> scripts dir.
>
> I'm currently running Catalyst 5.80020 and my working
> apache config contains:
>
> <Perl>
> use lib qw (
> /usr/local/myapp/lib );
> </Perl>
> PerlModule myapp
> Alias /myapp "/usr/local/myapp"
> <Directory "/usr/local/myapp">
> SetHandler
> perl-script
> PerlResponseHandler
> myapp
> </Directory>
>
> Any hlp apprec,
> -C
>
>
>
>
>
>
>
>
> _______________________________________________
> List: Catalyst at lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
> Dev site: http://dev.catalyst.perl.org/
>
More information about the Catalyst
mailing list