On Feb 23, 5:00 am, David De La Harpe Golden
wrote:
> On 22/02/10 16:48, Brice Leroy wrote:
>
> > Hello Brett,
> > If you use nginx you can use the X-Accel-Redirect function.
>
> Minor: if you _don't_ use nginx but rather apache or lighttpd,
> similar feature is
On 22/02/10 16:48, Brice Leroy wrote:
Hello Brett,
If you use nginx you can use the X-Accel-Redirect function.
Minor: if you _don't_ use nginx but rather apache or lighttpd,
similar feature is called "X-Sendfile".
--
You received this message because you are subscribed to the Google Groups
Actually, this snippet should be better to explain X-Accel-Redirect feature:
http://www.djangosnippets.org/snippets/491/
2010/2/22 Brice Leroy
> Hello Brett,
> If you use nginx you can use the X-Accel-Redirect function. Technicaly, you
> get the file request on django,
Hello Brett,
If you use nginx you can use the X-Accel-Redirect function. Technicaly, you
get the file request on django, you check if the user should have an access
to the file and then you send back a header with the filename inside to your
instance of NGinx. Nginx then serve the file.
Hey, this is a pretty basic sysadmin question, but seems pretty critical for
django development. What's the best way to limit media on a django site to
certain users?
A typical example is a photo gallery app. Suppose you are recreating Flickr,
and a user's photos should only be viewable by
5 matches
Mail list logo