Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Due to security reasons, web2py disables remote access to the admin app unless you are using a secured channel, ie. HTTPS. You all you need to do is set that up.</p> <p>The <em>shortest</em> way to do what you want is,</p> <ol> <li><p>Start by generating your certificate files, if you don't have them already</p> <p><code>openssl genrsa -out server.key 2048</code></p> <p><code>openssl req -new -key server.key -out server.csr</code></p> <p><code>openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt</code></p></li> <li><p>Copy the server.key and server.crt files to your web2py root folder.</p></li> <li><p>Then start the web2py application using the certificate files</p> <p><code>python web2py.py -a 'AdminPwd' -c server.crt -k server.key -i 0.0.0.0 -p 8000</code></p></li> <li><p>Then go to the browser and open, please note that the <strong>https</strong> is important</p> <p><code>https://IpAddr:8000/admin/default/site</code></p></li> </ol> <p>This should open the admin application on the remote machine.</p> <p>The <em>best</em> way to do what you want is,</p> <p>Use <a href="https://raw.githubusercontent.com/web2py/web2py/master/scripts/setup-web2py-nginx-uwsgi-ubuntu.sh" rel="nofollow noreferrer">this nice script (setup-web2py-nginx-uwsgi-ubuntu.sh)</a> to setup nginx with web2py using uWSGI on ubuntu. The script will setup the required https and http channels for you.</p> <p><strong><em>The methods described above are meant to be used in a development environment and not a production environment</em></strong></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload