I'm seeing more or less the same problem but I haven't managed to get
the 2-process solution to work yet.  I'm trying to use the
recommendation in version 2 of the manual:

""" An easy way to setup a secure production environment on a server
is to first stop web2py and then remove all the parameters *.py files
from the web2py installation folder. Then start web2py without a
password. This will completely disable admin and appadmin. """

So I started web2py with the following command line on my (remote)
webserver:
python2.5 web2py.py -i my_server_ip  -p 8000 -a "" &

So far so good.  It started and gave the "no password, no admin
interface" message.

Then I followed the second part of the recipe:

"""Next, start a second Python instance accessible only from
localhost:"""
nohup python2.5 -p 8001 -i 127.0.0.1 -a '<ask>' &

Second instance started with no complaints, but trying to reach the
server from my laptop, e.g.

http://my_server_ip:8000/init

gives the "Admin is disabled because of insecure channel' ticket.  Any
idea what I'm doing wrong?

Thanks,
Mike

On Jul 26, 1:09 pm, Randell <[email protected]> wrote:
> On Mon, Jul 27, 2009 at 12:58 AM, Kuba Kucharski
> <[email protected]>wrote:
>
>
>
> > Are you trying to access admin through localhost ??
>
> Yes.
>
>
>
> > Out of curiosity, why is that you need so much 0.0.0.0 ?
>
> To make it accessible from another machine (of course, having a different IP
> address).
>
>
>
> > please, run two instances of web2py
>
> > one like:
>
> > python web2py.py -i 127.0.0.1 -p 8001 -a "password"
>
> > second:
>
> > python web2py.py -i another_ip_of_yours -p your_port -a ""
>
> > then enter 127.0.0.1:8001 in your browser.
>
> > your apps will be visible through another_ip_of_yours:8001 but tickets
> > and admin only through 127.0.0.1 ..
>
> I will try this.
>
>
>
> > this is the easiest way. do not be afraid to run as many instances of
> > web2py as you need..
>
> I'm actually new to web2py (and Python, actually) and I didn't know that I
> can run many instances of it.  Thank you for the tip!
>
>
>
> > --
> > Kuba
>
> --http://randell.ph/
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to