[web2py] Re: "Admin is disabled because insecure channel" error Hosting web2py app on Amazon EC2 Linux server

2014-05-06 Thread Martin Lohner
ave S napsal(a): > > This should only be done for testing purposes, right? Because the point > of the check of is_local is to prevent unknown users from getting to the > admin app. > > /dps > > > On Monday, May 5, 2014 7:21:37 AM UTC-7, Martin Lohner wrote: >> >>

[web2py] Re: "Admin is disabled because insecure channel" error Hosting web2py app on Amazon EC2 Linux server

2014-05-05 Thread Martin Lohner
Hi... try this: request.is_local=True in web2py\applications\admin\models\access.py (on line 21) resp. before this 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 b