I still can't get this to work (original thread at
http://groups.google.com/group/django-users/browse_thread/thread/cdece5ef2e7fd280).
 I'm looking to get a HttpResponseRedirect in my django app to redirect to
HTTPS not HTTP.

I've tried:

* proxy server Apache (the one doing the SSL) does:
SetEnv X-Forwarded-Proto=https
* Apache running django/mod_wsgi does this:
SetEnvIf X-Forwarded-Proto https HTTPS=on

I've also tried:
* Hard coding HttpRequest.is_secure() in django to True

I've tried changing my wsgi file to do this:
_application = django.core.handlers.wsgi.WSGIHandler()

def application(environ, start_response):
    environ['HTTPS'] = 'on'
    return _application(environ, start_response)


but no luck.

With everything I've tried, it still redirects back to HTTP on a
HttpResponseRedirect.

Any clues anyone?

thanks,

Tim.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to