Re: Authentication/access check when serving static media thru Apache/nginx

2009-02-16 Thread Graham Dumpleton
On Feb 16, 9:53 pm, "proteus...@gmail.com" wrote: > The way to do this is by utilizing nginx as a reverse proxy for your > dynamic django (presumably apache) server and a peer media server > (presumably another nginx setup). Nginx has a great feature (as does > lighttpd) where you can have your

Re: Authentication/access check when serving static media thru Apache/nginx

2009-02-16 Thread proteus...@gmail.com
The way to do this is by utilizing nginx as a reverse proxy for your dynamic django (presumably apache) server and a peer media server (presumably another nginx setup). Nginx has a great feature (as does lighttpd) where you can have your page request come into django and perform all the authN/auth

Re: Authentication/access check when serving static media thru Apache/nginx

2009-02-16 Thread Ales Zoulek
You can write apache auth module in python, which is calling your external (django) code. It's not exactly Django issue. Maybe this blog post could help you http://www.thoughtspark.org/node/25 A. On Mon, Feb 16, 2009 at 10:44 AM, MrMuffin wrote: > > I`m using django to develop something simi

Authentication/access check when serving static media thru Apache/nginx

2009-02-16 Thread MrMuffin
I`m using django to develop something similar to flickr, a site for photo-sharing. Photos can be public, need authentication or be personal and not available for anyone but the owner. Serving static data using django is not optimal, but how can I control access like this when serving static media