Method for getting request.is_secure() to work for Apache/mod_fastcgi

Issue #1 resolved
Anonymous created an issue

I came across this project while trying to find a way to get request.is_secure() to work for a Django application running under Apache/mod_fastcgi. The solution I ended up using involved a rewrite rule to properly set the HTTPS environment variable.

{{{ RewriteEngine on RewriteCond %{HTTPS} on RewriteRule .* - [E=HTTPS:on] }}}

Thought I would pass it along incase you would like to include it in your documentation.

Comments (2)

  1. Log in to comment