Thank you for the quick reply. I'm not sure how to check whether uwsgi is setting the wsgi_url_scheme. A quick search of this group and the uwsgi wiki provided no direction. How can I check this?
On Oct 22, 11:36 pm, mdipierro <mdipie...@cs.depaul.edu> wrote: > 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 <da...@legacyplanningadvocates.com> > 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? > >