cache.pm and static contents serving based on filetype

Jeremy James jbj at forbidden.co.uk
Tue Jan 23 18:43:44 UTC 2007


kingler wrote:
> However, would it be more efficient to use Perlbal to serve static
> contents(photos and etc) maybe from MogileFS, while passing dynamic
> contents to the backend Apaches? This would require a filtering based
> on FileTypes requested. Also, if the user wanted to upload new photos,
> would it be a problem since the request is dynamic (say PHP) and it
> would be passed to the backend servers? Thanks.

Note that you'll probably want design your server infrastructure to make 
this easier to manage. Eg, put all images to be served by Mogile on 
media.domain.com and your normal 'apache' data through domain.com.

Alternatively, I wrote a plugin a while back to support serving files 
differently depending on path, so you can serve all files through 
/media/ with Mogile, and everything else with Apache.
http://lists.danga.com/pipermail/perlbal/2006-September/000261.html

If you want all image files to be served by perlbal without putting them 
in a sensible place; there madness lies...

-jeremy


More information about the perlbal mailing list