2 Apache instances using different mod_wsgi versions

51 views
Skip to first unread message

Nadia Anastopoulou

unread,
Nov 19, 2020, 2:12:46 PM11/19/20
to modwsgi
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

Graham Dumpleton

unread,
Nov 19, 2020, 2:16:58 PM11/19/20
to mod...@googlegroups.com
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:


Graham

--
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 modwsgi+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/modwsgi/55f24d65-f9b8-4902-a3c3-ef01f48fd26cn%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages