That is what mod_wsgi-express is for. You can have just the one system Apache installation, but mod_wsgi-express can be installed against multiple Python installations, each therefore having their own mod_wsgi.so file. When running mod_wsgi-express it will then create its own isolated Apache configuration, marrying the system Apache installation (binaries/modules), with the generated configuration and using the mod_wsgi.so specific to the Python version.
See: http://blog.dscpl.com.au/2015/04/introducing-modwsgi-express.html <http://blog.dscpl.com.au/2015/04/introducing-modwsgi-express.html> https://pypi.org/project/mod-wsgi/ <https://pypi.org/project/mod-wsgi/> Graham > On 20 Nov 2020, at 12:02 am, Nadia Anastopoulou <[email protected]> wrote: > > Hello, > > Python 3.7 project is already served under apache (Apache/2.4.29 (Ubuntu) > OpenSSL/1.1.1 mod_wsgi/4.7.1 Python/3.7 configured). > I want to create a second project with Python 3.8 and apache to be able to > serve both python versions in parallel. > My understanding is that apache with mod_wsgi can serve only 1 python version > at a time. > Can I create a second apache instance on the same server and each apache > instance to point to a a different mod_wsgi.so? I don't want to have embedded > apaches inside each python distribution or apache to act as a proxy but have > 2 apache and each one to be able to use different ports, modules and > virtualhosts files > > Thank you in advance, > Nadia > > > -- > You received this message because you are subscribed to the Google Groups > "modwsgi" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] > <mailto:[email protected]>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/modwsgi/55f24d65-f9b8-4902-a3c3-ef01f48fd26cn%40googlegroups.com > > <https://groups.google.com/d/msgid/modwsgi/55f24d65-f9b8-4902-a3c3-ef01f48fd26cn%40googlegroups.com?utm_medium=email&utm_source=footer>. -- You received this message because you are subscribed to the Google Groups "modwsgi" 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/modwsgi/7522586B-D9E3-422D-B08B-76724DE812ED%40gmail.com.
