[Catalyst] file system /web server best practices.

Lars Balker Rasmussen lars at balker.dk
Fri Jun 30 22:18:11 CEST 2006


On Fri, Jun 30, 2006 at 05:01:19AM -0700, Len Jaffe wrote:
> I need some advice on the best place to put static
> HTML pages, in the context of a web site that will
> have some static content, and some catalyst driven
> content.
> 
> Furthermore, I want to be able to run under the devel
> server, and mod_perl, at the same time, without having
> to resort to calling my index.html page via
> /static/index.html

Easy, you just need to configure Static::Simple to allow .html
to be served.  Then Static::Simple can handle the files outside
/static, and leave /static to mod_perl with

    <Location /static>
        SetHandler None
    </Location>

Static::Simple will of course still happily serve /static under
dev-server, it just won't see the requests on apache.

> my desktop does not have enough ram

Yeah, I don't get that.  
-- 
Lars Balker Rasmussen                                        Consult::Perl



More information about the Catalyst mailing list