Re: [web2py] Re: teaching email links to respect https

2011-05-24 Thread pbreit
It might not be 100%. For example, on Nginx, you have to include this config: uwsgi_param UWSGI_SCHEME $scheme; But I still don't really understand why you need this.

Re: [web2py] Re: teaching email links to respect https

2011-05-24 Thread Jonathan Lundell
On May 24, 2011, at 5:47 PM, Anthony wrote: > On Tuesday, May 24, 2011 6:34:15 PM UTC-4, Massimo Di Pierro wrote: > In trunk we have > > request.is_https > > Which checks whether request.env.wsgi_url_scheme is https (or HTTPS) or > request.env.https is "on". > ...and of course doesn't necess

[web2py] Re: teaching email links to respect https

2011-05-24 Thread Anthony
On Tuesday, May 24, 2011 6:34:15 PM UTC-4, Massimo Di Pierro wrote: > > In trunk we have > > request.is_https Which checks whether request.env.wsgi_url_scheme is https (or HTTPS) or request.env.https is "on".

[web2py] Re: teaching email links to respect https

2011-05-24 Thread Massimo Di Pierro
In trunk we have request.is_https Massimo On May 24, 4:33 pm, Andrew Thompson wrote: > On 5/24/2011 5:02 PM, pbreit wrote: > > > Does " request.env.https" exist? I don't see it in my environment. > > It does for me, running web2py behind lighttpd. > > I also found a reference to request.env.wsg

Re: [web2py] Re: teaching email links to respect https

2011-05-24 Thread Andrew Thompson
On 5/24/2011 5:02 PM, pbreit wrote: Does " request.env.https" exist? I don't see it in my environment. It does for me, running web2py behind lighttpd. I also found a reference to request.env.wsgi_url_scheme, but I wasn't sure if it's content could be 99+% predicted. http://comments.gmane.or

[web2py] Re: teaching email links to respect https

2011-05-24 Thread pbreit
Does "request.env.https" exist? I don't see it in my environment. I don't think https is necessary for those links. And if it is, your web server or code should be enforcing SSL on the URLs.