On Fri, 4 Oct 2013 11:53:22 -0700 (PDT) Niphlod <[email protected]> wrote:
> as often, you're making things much more complicated then they really > are. I don't understand? > web2py "calculates" what password_portnumber.py to use seeing where > the server listens to. It has (and can't have) knowledge of any > proxies in between. My setup is nothing special, just the opposite - common scenario where one use real webserver (nginx) on the front-end and acting as reverse-proxy serving static content and dispatching requests for dynamic content to the wsgi server (gunicorn) listening on 127.0.0.1:localport. Actually, the setup is pretty much the same as well-known webfaction hosting. > So, even if your site is reachable from the outside world on the port > 443, the web2py code will see those request coming to the 80 port if > you configured gunicorn to listen on that one.... it's nginx that is > "translating" whatever comes through 443 to the 80 of gunicorn > (because of your configuration). My site is nothing else than vanilla web2py installation and default (welcome) application is available from the outside world on the port 80. >From where do you conclude that I configured gunicorn to listen on port 80? Otoh, afaik, web2py allows accessing admin interface remotely only via https... > So, in your case, web2py will search the parameters_80.py file because > it's where the requests are coming from (nginx) Can you, please, explain me how are requests coming from port 80 if I access the site with: https://tld/ ? > because it can't know that the nginx configuration is doing the > translation between 443 and 80. I admit I'm not very familiar with nginx (after Apache, mostly used lighty, cherokee and hiawatha for PHP sites) and just modified ISP's recipe, but from where I can see that nging is 'doing the translation between 443 and 80' ? Sincerely, Gour -- For him who has conquered the mind, the mind is the best of friends; but for one who has failed to do so, his mind will remain the greatest enemy. 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 [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

