Monday, August 1, 2011

Re: How control access to static pages that are *not* part of a Django app?

On Mon, Aug 1, 2011 at 2:51 PM, Chris Seberino <cseberino@gmail.com> wrote:
> Thanks.  I'll look into that.  Is there no way to have a view hand off
> a page to Apache?
> If there was, I could have a view that was password protected and only
> when I was in the view would I allow the apache page to be served.

that's exactly what mod_xsendfile (and X-accel-redirect for nginx)
does. in short, any response from Django that contains such header is
replaced by the frontend server with the file.

--
Javier

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment