Hello all,

First off apologies if some of this has been covered, I'll continue to 
search this group and net for solutions.  I'm trying to run a Django app 
(Mezzanine) and MoinMoin.  Mezz is going to run on python3 and MoinMoin 
python 2 as it's not yet been ported to 3.  I understand the risks of 
running python2 and I'm fine with that.

I learned that this was possible from this link 
<http://blog.bsmithers.co.uk/2017/10/python2-python3-on-the-same-apache-server/#:~:text=All%20was%20well%20when%20testing,starts%20to%20explain%20the%20solution.>
 but 
he doesn't go into too much detail - at least not enough for me to 
completely figure this out.  From there he references this 
<http://blog.dscpl.com.au/2015/04/introducing-modwsgi-express.html> and 
that helps some more, but doesn't cover my "use case" if you will.  The 
following are the steps I think that I need to follow but looking for some 
feedback as I'm on my third Azure Ubuntu image trying to get this figured 
out.

1. After creating my baseline VM image which does not include Apache by 
default, but does include both python2 and python3, create python virtual 
environments for each app using python2 and python3 respectively and 
install mod_wsgi-express into each using pip using the following commands:

     pip install mod_wsgi-httpd
     pip install mod_wsgi  

I believe this will position me to be able to run any mod_wsgi-express 
command to either run each app its own non-root user port.  The 2nd link 
tells how to serve my app and my static files separately as one would like 
to do in a production environment which is my target here.

3 (yes this 3 I'll come back to 2)  - This is a bit of guess...the 
"Connecting into Apache installation" section of this link 
<https://pypi.org/project/mod-wsgi/> explains  how I can use the 
'module-config' parameter to mod_wgsi-express to generate configuration for 
my main/system apache install to load two separate mod_wsgi modules, one 
from my python3 virtual environment that I created for Mezz and one from my 
python2 virtual environment created for MoinMoin.

2 - What is the correct way for me to install my main/system apache 
instance such that I can complete step 3?

4 - finally I realize there is some main/system apache configuration to do 
to point the main/system apache instance to run as a reverse proxy to the 
app virtual environments (Mezz and MoinMoin).  That seems to be covered by 
the first link.

I hope my questions make sense, and appreciate any assistance.

Best Regards,
cmedcoff




-- 
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/999c6551-8964-41ee-a91c-12daf98d3b49n%40googlegroups.com.

Reply via email to