Hi,

Just in case anyone else runs into this, the proxy must forward the
variable X_FORWARDED_PROTO, and not, as a few other posts i found
suggest: X_FORWARDED_PROTOCOL.  So for nginx use in your location
section where you are proxying:
            proxy_set_header X_FORWARDED_PROTO $scheme;

Cheers,
Damian

On Jan 29, 5:28 pm, Damian <[email protected]> wrote:
> Hi,
>
> I'm just moving my webapp which runs in apache/mod_wsgi behind an
> nginx proxy.  I've set it up to use the prefixmiddleware and all the
> https url_for'ed url's generate as expected.  Unfortunately this
> doesn't seem to be the case for redirect_to urls, as these send me to
> the http, not the https url..  Am I missing something?
>
> Cheers,
> Damian

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" 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/pylons-discuss?hl=en.

Reply via email to