I'm receiving the following message when logging in to the admin interface 
of web2py on my hostmonster account:

Login requires a secure (HTTPS) connection or running on localhost.

I've followed the instructions here:  
http://www.web2pyslices.com/slice/show/1401/web2py-on-shared-hosting-hostmonster-with-fastcgi

It appears that this:

if request.env.http_x_forwarded_for \
        or request.env.wsgi_url_scheme in ['https', 'HTTPS'] \
        or request.env.https == 'on':
    session.secure()
elif not remote_addr in hosts:
    raise HTTP(200, T('Admin is disabled because insecure channel'))



has been changed to this:

if request.env.http_x_forwarded_for or request.is_https:
    session.secure()
elif not request.is_local and not DEMO_MODE:
    raise HTTP(200, T('Admin is disabled because insecure channel'))


but commenting it out still does not help.

-- 



Reply via email to