djangosnippets.org: Latest snippets tagged with 'Cloud'https://djangosnippets.org/tags/cloud_1/2011-06-28T01:25:41.582816-05:00Enable AWS ELB with SSL Termination
2011-06-28T01:25:41.582816-05:00zvikicohttps://djangosnippets.org/snippets/2472/<p>When using Amazon's ELB with SSL termination, Django needs to know that the requests are secure. You need to use the special indication given on the request (HTTP_X_FORWARDED_PROTO) to determine that. This middleware will do that for you. </p>
<p>The second part is forcing requests to HTTPS in case they are …</p>
Freely redistributable