Archives March 27, 2012
Make your nginx-proxied Django site detect SSL (HTTPS)
Written by
on
in
Snaking.
One of the nice new features in Django 1.4 is that it allows you to (easily) detect an upstream server's use of ssl using request.is_secure(). This means that your nginx configuration can use http or https on the same server and your Django site can detect it. The magic is accomplished by *always* setting a ...