Thank you Tim,

I tried but restarting apache and accessing the instance the browser takes a long time to respond and I get this error in log:

ImportError: No module named site

This is how my apache configuration looks like if could be of any help to understand the problem:

<VirtualHost *:443>

  ServerAdmin [email protected]
  ServerName lab.mycompany.com

  SSLEngine on

  WSGIDaemonProcess laboratory python-home=/path/to/pyenv36 user=myuser group=myuser processes=1 threads=1
  WSGIProcessGroup laboratory
  WSGIScriptAlias / /path/to/web2py/wsgihandler.py
  WSGIPassAuthorization On

  <Directory /path/to/web2py>
    AllowOverride None
    Require all denied
    <Files wsgihandler.py>
      Require all granted
    </Files>
  </Directory>

  AliasMatch ^/([^/]+)/static/(?:_[\d]+.[\d]+.[\d]+/)?(.*) /path/to/web2py/applications/$1/static/$2

  <Directory /path/to/web2py/applications/*/static/>
    Options -Indexes
    ExpiresActive On
    ExpiresDefault "access plus 1 hour"
    Require all granted
  </Directory>

  CustomLog /var/log/apache2/ssl-lab-access.log common
  ErrorLog /var/log/apache2/lab-error.log
  ServerAlias laboratory.mycompany.com
  Include /etc/letsencrypt/options-ssl-apache.conf
  SSLCertificateFile /etc/letsencrypt/live/lab.mycompany.com/fullchain.pem
  SSLCertificateKeyFile /etc/letsencrypt/live/lab.mycompany.com/privkey.pem
</VirtualHost>

On 21/01/20 12:58, Tim Nyborg wrote:
Yes, that should work.

--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- You received this message because you are subscribed to the Google Groups "web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/12751f8d-1e74-da4f-5479-4d51ab9fde6f%40gmail.com.

Reply via email to