I needed SSL with per-domain certificates. Because mod_wsgi-express, though easy to install, becomes inflexible if virtual hosts settings need to be adjusted eventually, I switched to a second instance of Apache from the system-specific packaging. The steps like this:
cd /usr/share/doc/apache2/examples/ ./setup-instance python3 The new instance can be launched as: systemctl start apache2@python3.service To get WSGI support for python3 it was not possible to simply install the relevant mod-wsgi module package (libapache2-mod-wsgi-py3) alongside with its python2 version (libapache2-mod-wsgi), because they are in conflict. So, I had to install the module from source, such as: aptitude install apache2-dev cd /opt wget https://github.com/GrahamDumpleton/mod_wsgi/archive/4.6.5.tar.gz tar -xvzf 4.6.5.tar.gz cd mod_wsgi-4.6.5 which python3.7 ./configure --with-python=/usr/bin/python3.7 add and enable the mod_wsgi.so (located in my case in /opt/mod_wsgi-4.6.5/src/server/.libs/mod_wsgi.so) in the apache-python3 instance instead of the python2 version. As long as the correct module is loaded, no need to specify the interpreter in Apache configs; at least in my case. I hope it helps someone ... David -- 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 web2py+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/b428e3f7-c2a5-44ba-8f0b-165e6a01d3aa%40googlegroups.com.