On Aug 3, 3:28 pm, Mike Orr <[email protected]> wrote:
> On Sun, Aug 2, 2009 at 9:03 PM, hekevintran<[email protected]> wrote:
>
> > I found a good solution.  It will know which protocol to use if you
> > specify it in the function call to redirect_to:
>
> > return redirect_to(protocol='https', controller='myController',
> > action='index')
>
> That's a workaround, yes.  Is WebFaction doing proxying?  Because my
> HTTPS application uses ProxyPass and the URLs are generated correctly
> even without the protocol option.

Yes, WebFaction uses nginx in front. The nginx does:

  RequestHeader set Http-X-Forwarded-Proto https

for HTTPS connection.

There appears to be stuff in Paste to handle it. Just needs to be
configured to use it I guess.

http://trac.pythonpaste.org/pythonpaste/changeset/7458

Graham

--~--~---------~--~----~------------~-------~--~----~
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