Hello,

As of revision #6164, when accessing my site over HTTPS, all redirects
are being sent to plain HTTP urls.

It seems that this is because build_absolute_uri() uses
request.is_secure() to determine if the absolute url should be secure,
and request.is_secure() makes its determination based on whether or
not the variable 'HTTPS' is set to "on" in the operating system
environment. But this variable is not set in the operating system
environment in all cases. In particular, it does not work when
deploying Django through mod_wsgi. I have not tested HTTPS redirects
through fastcgi, but I suspect a similar problem may exist there. Can
anyone verify or debunk this suspicion?

I'm not sure what the right solution is to this problem, or if it is
best addressed in Django, or mod_wsgi, or somewhere else.


Thank you,
Jeffrey

--
Jeffrey Froman
OlympusNet Administration
http://www.olympus.net
[EMAIL PROTECTED]


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to