Discussion:
[melkjug-dev] Fwd: AuthKit for Static Files
Joshua Bronson
2009-04-10 16:04:31 UTC
Permalink
pylons-discuss strikes again: Cool technique for serving static files with
lighttpd or nginx in front of pylons.
---------- Forwarded message ----------
From: Pawe³ Stradomski <pstradomski-***@public.gmane.org>
Date: Wed, Apr 8, 2009 at 5:44 PM
Subject: Re: AuthKit for Static Files
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 pylons-discuss-/***@public.gmane.org
To unsubscribe from this group, send email to
pylons-discuss+unsubscribe-/***@public.gmane.org<pylons-discuss%***@googlegroups.com>
For more options, visit this group at
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Loading...