Look into admin/models/access.py

This is how web2[y checks

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 and not DEMO_MODE:
    raise HTTP(200, T('Admin is disabled because insecure channel'))

is uwsgi not setting wsgi_url_scheme?


On Oct 22, 10:33 pm, Triquetra <[email protected]>
wrote:
> I am running web2py (1.86.2) on Debian Lenny with Nginx and uwsgi.
> This is a local test server that I have physical access to.
>
> I can access the welcome and admin pages from the server (localhost),
> so it appears the admin interface is working.
>
> And I can access the welcome app from other computers on the network,
> so it looks like nginx and uwsgi is properly serving web2py to the
> network.
>
> And I can access the welcome app 
> throughhttps://192.168.0.189/welcome/default/index,
> so it looks like nginx is properly serving ssl pages.
>
> But I am unable to access the admin page remotely from another
> computer on the network.  I get the error "Admin is disabled because
> insecure channel".
>
> I don't understand why since it seems that ssl is working properly.
>
> Does anyone have an idea what this could be?

Reply via email to