[Catalyst] problem deploying with apache
Marcello Romani
mromani at ottotecnica.com
Wed Sep 6 10:35:58 CEST 2006
Fernan Aguero ha scritto:
> Hi,
>
> I've got a little catalyst test app that I want to move to
> apache. In my httpd.conf I added the following:
>
> <IfModule perl_module>
> PerlSwitches -I/home/fernan/proyectos/portfolio/database/Portfolio/lib
> PerlModule Portfolio
>
> <Location /portfolio/>
> SetHandler mod_perl
> PerlResponseHandler Portfolio
> </Location>
> </IfModule>
>
> Now, apache is restarted normally, and when I call the
> http://localhost/portfolio URL, catalyst is loaded fine
> (debug output to /var/log/http-error.log similar to that
> produced by running the testapp_server.pl). However, I don't
> get the expected default page for my app but this error
> instead:
>
> Not Found
>
> The requested URL /portfolio/ was not found on this server.
>
> And this line in the httpd-error.log:
>
> [Tue Sep 05 15:11:26 2006] [error] [client 192.168.10.179]
> File does not exist: /usr/local/www/apache22/data/testapp/
>
> (/usr/local/www/apache22/data/ is my DocumentRoot)
>
> I don't know why apache it's looking under the DocRoot.
>
> Is this an apache conf issue? Or a catalyst issue? I'm
> inclined to think the former, since an almost identical
> configuration for trac on mod_python works fine
> (accessing http://host/trac works as expected, and there's
> no 'trac' dir/file under DocRoot).
>
> Any ideas?
>
> Thanks in advance,
>
> Fernan
>
> _______________________________________________
> List: Catalyst at lists.rawmode.org
> Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-archive.com/[email protected]/
> Dev site: http://dev.catalyst.perl.org/
>
>
For an app of mine I have the following bits in httpd.conf:
<IfModule mod_perl.c>
<Perl>
use lib qw(/home/httpd/perl/PDFJoin/lib);
</Perl>
PerlModule PDFJoin
<Location /pdfjoin>
SetHandler perl-script
PerlResponseHandler PDFJoin
</Location>
</IfModule>
HTH
--
Marcello Romani
Responsabile IT
Ottotecnica s.r.l.
http://www.ottotecnica.com
More information about the Catalyst
mailing list