See the python-home argument to WSGIDaemonProcess PYTHON_HOME is per process, so you must use daemon processes and have separate processes/groups for apps requiring separate virtualenvs.
On Fri, May 5, 2017 at 11:30 AM, Jared Greenwald <[email protected]> wrote: > We're finally converting our project from mod_python to mod_wsgi and I'm > running into an issue with converting our apache config - hoping someone > can provide guidance. > > We have our environment setup such that we have multiple versions of the > same application (testing & production) running on the same machine but > accessed via different ports. These ports map to different VitualHost > configurations which had different PythonPath directives set so that we > could set different code stacks for rolling out the different versions of > our app to testing and then to production. The issue I'm seeing now is > that the WSGIPythonPath directive which would seem to be the analogous > directive to the mod_python PythonPath directive doesn't allow for it to be > set within a VirtualHost. Obviously, I can't just set the path globally > for all VirtualHosts since I have two completely separate code directories > for each of the two environments. > > So, the question is, how do I setup my apache config to allow for this > type of setup? I've tried to Googling around for an answer on this before > coming here but I haven't been able to come up with a good solution. Any > help would be much appreciated. > > Thanks in advance. > > -- > 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 https://groups.google.com/group/modwsgi. > For more options, visit https://groups.google.com/d/optout. > -- 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 https://groups.google.com/group/modwsgi. For more options, visit https://groups.google.com/d/optout.
