The variables passed to the web server are not passed to web2py
directly. It should be responsibility of the web server to pass them
to web2py via request.env.

On Aug 21, 3:57 pm, DenesL <denes1...@yahoo.ca> wrote:
> I patched admin/models/access.py so that hosts also includes
> '192.168.0.4' since it only had '127.0.0.1' and '400_host_name' in it
> but not the ip which comes from request.env.remote_addr even though
> the request is coming from the same machine via SSH tunnel.
>
> My web2py start command is:
> /QOpenSys/web2py/web2py.py -a '<recycle>' -p 9000 -i '192.168.0.4'
>
> Shouldn't hosts include the ip address used to start web2py in the
> first place?.
>
> The "unable to access password file" was due to the fact that the file
> parameters_9000.py did not exist, I had tried port 8000 first and
> never created a password when I had to switch to port 9000... burn!.
>
> So, admin works with the patch via SSH tunnel:
>  L9000 --> 192.168.0.4:9000
> in my case.
>
> Now the real testing begins...
> Denes.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to