You do not have one. By default the url is (as it says)
http://127.0.0.1:8000
but that is a development setup and the url is not visible from
outside for security reasons.
You have various options depending on what you want to do:
1) run without https
python2.6 web2py.py -i 0.0.0.0 -p 8000
Now your url is (assuming no firewall)
http://<the host ip>:8000
This is ok but "admin" will be disabled because of un-secure channel
(no https)
2) run with https
python2.6 web2py.py -i 0.0.0.0 -p 443 -c <SSL_CERTIFICATE_FILE>
-k <SSL_PRIVATE_KEY_FILE>
Now your url is (assuming no firewall)
https://<the host ip>
This is ok but if you use shared hosting they may block 443 and you
may need to a different port. You need to make your certificates.
3) If you only use https for "admin" and not for the users of your
app, follow 1) and then make a SSH tunnel as described here:
http://www.web2pyslices.com/main/slices/take_slice/71
then connect to admin using the tunnel. This is the most secure way.
Anyway. For a real production system you should run a production web
server (for example apache+mod_wsgi+web2py). Most shared hosting
systems do not allow that. The easiest way is using a Ubuntu VPS. In
that case the instructions are very simple:
http://www.web2pyslices.com/main/slices/take_slice/29
On Mar 15, 3:04 am, solom <[email protected]> wrote:
> Hi
>
> I've uploaded web2py to my hosting account in site5 (a shared account,
> unix server)
> Then I've run: python2.6 web2py.py
> Now what? how can I access web2py from the browser? what is the URL to
> type?
>
> When I ran the above command in putty SSH, it replied with:
>
> ===================================
> web2py Enterprise Web Framework
> Created by Massimo Di Pierro, Copyright 2007-2010
> Version 1.76.5 (2010-03-11 15:19:08)
> Database drivers available:
> Starting hardcron...
> WARNING:root:GUI not available because Tk library is not installed
> choose a password:
> please visit:
> http://127.0.0.1:8000
> use "kill -SIGTERM 16578" to shutdown the web2py server
> ===================================
>
> Please help me. Many thanks for your time.
--
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.