[Seaside] Serving files in a quick yet secure way

Philippe Marschall philippe.marschall at gmail.com
Mon May 17 16:53:02 UTC 2010

2010/5/17 AxiNat <tibabenfortlapalanca at gmail.com>:
> Hi all,
> I'm coding an app that will have to deal with quite a handful of pretty big
> files in a daily basis.
> So far, for prototyping, I've been using a WAFileLibrary, but it's becoming
> more and more clear to me that this is the wrong approach, because it takes
> forever to add/delete a file from the library and the application will have
> to be deployed soon for real life usage.
> The apache solution is not valid in my case, cos these files MUST be
> inaccessible via the browser,

Not so fast. You can put them in a folder above docroot and then use
mod_xsendfile [1]. That uses the sendfile() system call to let the
kernel deliver the file. That's a about as efficient as it gets, the
data won't even touch user space.

 [1] http://tn123.ath.cx/mod_xsendfile/


More information about the seaside mailing list