Thanks!

2009/12/8 Yarko Tymciurak <[email protected]>

> On Dec 6, 9:18 pm, 陶艺夫 <[email protected]> wrote:
> > Thanks for reply.
> > I do know the server's IP, I can connect to the server too. I'm runing
> > web2py behind a apache web server. What I mean is - How can I set a
> secure
> > channel to connect to the server to manage the site?
> >
>
> Here is one thing you can do:
>
> If you can log into the server (to manage, upload that way) then you
> can use ssh like this:
>  alias tunnel='ssh -L 8001:127.0.0.1:8002 '
>
> From your end, if you use "tunnel" to connect to your server, say:
>  tunnel m...@myserver:my_web2py_instalnce
>
> then - once logged into your server, you can run a separate web2py
> instalnce to talk on 127.0.0.1:8002 (or whatever local port is
> available - adjust the "ssh" command appropriately).
>
> That is, after logging into your server simlilar to above, then:
>
>   python web2py.py -p 8002 -a 'my_admin_password'   # this on the
> remote machine
>
> will bring a parallel instance of web2py up, using the builtin
> cherrypy (which is ok for admin);  you will be able to edit apps, view
> tickets, etc.   This will show up on the remote machine's
> 127.0.0.1:8001, BUT you have it tunneled to your local machine into
> port 8001 (  ssh -L 8001:... )  so you can take a LOCAL browser to
> view this instance of your server as 127.0.0.1:8001 (the local port
> which is viewing the remote 127.0.0.1:8001 output).
>
> As long as you are logged in, and have the tunnel setup, you can admin
> your machine through the admin interface in this way.
>
> Hope this helps.
>
> - Yarko
>
>
> > thanks.
> >
> > 2009/12/7 blackthorne <[email protected]>
> >
> >
> >
> > > when you run web2py just define the IP for the interface where you
> > > want web2py to be available.
> > > Suppose your web2py is running on a machine with the IP 192.168.1.9,
> > > then you could do:
> > > python web2py.py -i 192.168.1.9
> >
> > > Regards
> >
> > > On Dec 7, 2:03 am, 陶艺夫 <[email protected]> wrote:
> > > > Hi,
> > > > I'm runing a web2py in an openvpn server and I want to login as an
> > > > administrator to manage my site from a openvpn client.
> > > > How can I  make it possible?
> >
> > > > Thanks.
> >
> > > --
> >
> > > 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]<web2py%[email protected]>
> <web2py%[email protected]<web2py%[email protected]>
> >
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/web2py?hl=en.
>
> --
>
> 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]<web2py%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/web2py?hl=en.
>
>
>

--

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