On Feb 2, 12:30 am, Damian <[email protected]> wrote:
> 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;

Technically you would use 'X-Forwarded-Proto' which is the normal
convention for case on HTTP headers. This will be automatically
converted to HTTP_X_FORWARDED_PROTO by web server/WSGI adapter on
backend.

Graham


> 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