[Catalyst] A different approach to static content
    Perrin Harkins 
    perrin at elem.com
       
    Tue Aug 16 20:04:04 CEST 2005
    
    
  
On Tue, 2005-08-16 at 13:59 -0400, Christopher H. Laco wrote:
> > On Tue, 2005-08-16 at 18:10 +0100, Matt S Trout wrote:
> >>Returning DECLINED to apache - or just having a <Location /myapp/static>
> >>block when you deploy under mod_perl - seems like a much better way to do
> >>it.
[...]
> IMHO, there's no reason I should have to tweak my httpd.conf everytime 
> just to serve more static from /.
The DECLINED suggestion doesn't require changing your conf.  If you
confine the part handled by Catalyst to a specific directory, that will
also not require conf changes when adding new static directories.
> We have 
> the technology. It should just work
Messing with the server configuration from within Perl code is
notoriously tricky and I don't recommend it when it isn't truly
necessary.  It would be different on every platform (mp 1, mp 2,
FastCGI) as well.
- Perrin
    
    
More information about the Catalyst
mailing list