title: How can I prevent a redirect loop using SSL with gunicorn/nginx?
body: <p>I get a redirect loop when using SSL middleware to redirect certain urls to HTTPS. What should I do?</p>
  
  <p>My nginx config is set up to forward requests to gunicorn.</p>