pylons-discuss strikes again: Cool technique for serving static files with
lighttpd or nginx in front of pylons.
---------- Forwarded message ----------
From: Paweł Stradomski <[email protected]>
Date: Wed, Apr 8, 2009 at 5:44 PM
Subject: Re: AuthKit for Static Files
To: [email protected]

W liście Mike Orr z dnia środa, 8 kwietnia 2009:
> If the system will be serving disproportionately more static files
> than dynamic pages, then at some point Python will not be able to keep
> up, and you'll have to serve the files from Apache with a non-Python
> authorization system.

I don't know about Apache, but with lightppd or ngnix in the front you could
modify static middleware not to stream the file, but instead return empty
respone with X-Sendfile header - then lighty or nginx would pick up the file
and stream it to client.

The header has sligthly different name and meaning in one of those servers,
I
don't recall which one.
--
Paweł Stradomski

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]<pylons-discuss%[email protected]>
For more options, visit this group at
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to