I have two python apps I'd like to run on the same server. One requires Python 2.7, the other requires Python 3.3. I'm running CentOS 6.6 with httpd 2.4 and the python 2.7 and 3.3 SCLs. The Python 2.7 app is currently deployed through apache. I'm running the python 3.3 app through the flask dev server on another port, but want to run in in the same apache instance.
When I start apache, and it tries to load the second mod_wsgi instance it tells me :
AH01574: module wsgi_module is already loaded, skipping
So I change: LoadModule wsgi_module modules/mod_python33-wsgi.so to:
LoadModule wsgi_module33 modules/mod_python33-wsgi.so
And then I get Can't locate API module structure `wsgi_module33' in file /opt/rh/httpd24/root/etc/httpd/modules/mod_python33-wsgi.so: /opt/rh/httpd24/root/etc/httpd/modules/mod_python33-wsgi.so: undefined symbol: wsgi_module33
Is this possible?
Apparently, it's not possible.
All the customization accepted by
mod_wsgi
is to use a specific version usingvirtualenv
.