> On 9 Oct 2015, at 7:25 am, bherman <[email protected]> wrote:
> 
> Is it possible to run multiple python instances with modwsgi.
> For example, I have one webapp in 2.7 and one webapp coded in 3.4 is it 
> possible to run both simultaneously?

The short answer is that the mod_wsgi module is C code and is compiled for a 
specific version of Python. You cannot load two different copies for mod_wsgi, 
compiled against different Python versions, into the same Apache instance. You 
are therefore restricted to one Apache instance running code for only one 
Python version.

A solution is to use mod_wsgi-express and have it installed separately into two 
different Python versions and then run each separately and use a front end web 
server to proxy to each. Alternatively, run your main Python web application in 
your existing Apache installation as is using traditional mod_wsgi 
installation, and then for the secondary one using a different Python version, 
use mod_wsgi-express for it on a separate port and then have the existing 
Apache running the first Python web application proxy either a specific virtual 
host or URL namespace to the separate mod_wsgi-express instance.

If you check out my blog I have talked about various stuff related to proxying 
to mod_wsgi-express over the last few months. That was in relation to use of 
Docker, but the way mod_wsgi-express is setup to handle being behind a proxy is 
still relevant.

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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.

Reply via email to