On Sat, 5 Oct 2013 06:08:37 -0700 (PDT) Niphlod <niph...@gmail.com> wrote:
> I don't think that there's a bug. is_https is set because of the > http_x_forwarded_proto header, that is an header sent by your > webserver back to web2py telling it that the request is coming from > an https realm. OK. > http_port is set to 80, so it's now totally clear > that your setup has a web2py app mounted on the lowest-middleware in > your setup (being that gunicorn or whatever else) that is listening > on port 80. How you explain that gunicorn is listening on port 80 when after starting it, it reports e.g.: starting gunicorn on 127.0.0.1:62019... /usr/lib/python2.6/dist-packages/pytz/__init__.py:32: UserWarning: Module _mysql was already imported from /usr/lib/pymodules/python2.6/_mysql.so, but /usr/lib/pymodules/python2.6 is being added to sys.path from pkg_resources import resource_stream 2013-10-05 15:36:23 [1649] [INFO] Starting gunicorn 18.0 INFO:gunicorn.error:Starting gunicorn 18.0 2013-10-05 15:36:23 [1649] [INFO] Listening at: http://127.0.0.1:62019 (1649) INFO:gunicorn.error:Listening at: http://127.0.0.1:62019 (1649) 2013-10-05 15:36:23 [1649] [INFO] Using worker: sync INFO:gunicorn.error:Using worker: sync 2013-10-05 15:36:23 [1661] [INFO] Booting worker with pid: 1661 INFO:gunicorn.error:Booting worker with pid: 1661 > BTW, you may be missing that all of this is OUTSIDE the things that > web2py can manage: those headers are sent by your frontend and > there's nothing web2py can do about it, except treat them as > parameters. I dont't get it... HTTP_X_FORWARDED_PORT : 443 HTTP_X_FORWARDED_PROTO : https HTTP_X_FORWARDED_PROTOCOL : https and server port is set to 80? How? At the moment I can't look further having some obligations outside, but will try muc later in the evening and/or tomorrow. Sincerely, Gour -- Not by merely abstaining from work can one achieve freedom from reaction, nor by renunciation alone can one attain perfection. http://www.atmarama.net | Hlapicina (Croatia) | GPG: 52B5C810 -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.