If your app is proxied you might be running into an apache config issue. See the following:
https://bugzilla.redhat.com/show_bug.cgi?id=843326 & https://github.com/rmillner/crankcase/commit/58f582172a43c118e8610b023853945dd01cc7ca The used the following to make sure the correct wsgi param is set: <IfModule mod_setenvif.c> SetEnvIf X-Forwarded-Proto https HTTPS=1 </IfModule> On Thursday, September 13, 2012 8:38:45 AM UTC-5, Francisco Barretto wrote: > > Hi There! > > Deploying web2py on a server gives me some headache about accessing the > admin page (on server) from a remote machine. First it throwed the message > "'Admin is disabled because insecure channel'. So I found some posts > talking about comment the following code > > > 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')) > > Unfortunatelly, commenting, this part of the access.py file is not the > right way to do it and I know. Besides, it still shows-me this message > "ATTENTION: Login requires a secure (HTTPS) connection or running on > localhost". So, it´s not apropriate and doesn´t even solve the problem. > > Since I´m using linux as my server OS and it doesn´t have a graphic > interface I can´t access the admin page through a local browser. My point > is, how to correctly enable the admin page remote access? Already tryed to > start with the server IP and 0.0.0.0 using ports 8000, 80 and 443 and still > nothing. Also tryied to specify the protocol HTTPS on browser but I get > this error: > > SSL received a record that exceeded the maximum permissible length. > > > (Error code: ssl_error_rx_record_too_long) > > So, can anybody point me the right way? > > Thanks! > --

