[Catalyst] Serving static content
Marcello
m.romani at spinsoft.it
Mon Jun 13 10:56:10 CEST 2005
Perrin Harkins ha scritto:
> On Thu, 2005-06-09 at 17:31 +0100, Chisel Wright wrote:
>
>>I'm a tad confused about some different behaviour between ap_server.pl
>>and app_test.pl.
>>
>>I have a tiny app with a comtroller Static.pm, containing a default
>>method and a begin method:
>>
>>sub default : Private {
>> my ( $self, $c ) = @_;
>> unless ($c->serve_static) {
>> $c->res->output('static content not found');
>> }
>>}
>
>
> May I ask why you're serving static content from Catalyst? I know
> there's a plugin, but I'm not sure why. Is it so you can do some kind
> of auth checking in Catalyst?
Static content would be better served by apache than any mod_perl app,
but moving it out of Catalyst you end up having no static content when
using script/MyApp_server.pl; also, no auth checking would be performed
on those files.
>
> - Perrin
>
Marcello
>
> _______________________________________________
> Catalyst mailing list
> Catalyst at lists.rawmode.org
> http://lists.rawmode.org/mailman/listinfo/catalyst
>
More information about the Catalyst
mailing list