The following solution, as proposed by Graham Dumpleton, did indeed
work for me. Once again I am using nginx+SSL as a proxy to apache+wsgi
and am no longer getting SSL redirect loop errors.

In your nginx.conf file you need to have:

    proxy_set_header X-Url-Scheme $scheme;

While your WSGI wrapper looks something like this:

    import os, sys

    apache_configuration= os.path.dirname(__file__)
    project = os.path.dirname(apache_configuration)
    workspace = os.path.dirname(project)
    sys.path.append(workspace)

    os.environ['DJANGO_SETTINGS_MODULE'] = 'myproject.settings'

    import django.core.handlers.wsgi
    _application = django.core.handlers.wsgi.WSGIHandler()

    def application(environ, start_response):
        environ['wsgi.url_scheme'] = environ.get('HTTP_X_URL_SCHEME',
'http')
        return _application(environ, start_response)

If others find this information helpful may I suggest we include it in
the installation hints?


--
Trevor
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Satchmo users" 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/satchmo-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to