Hello,
Version of Python: 3.5
Version of Apache: 2.4
Operating system: Windows Server 2008
Error Python packages: scikit-learn
mod_wsgi: embedded-mode
We are having deadlocks problems when using multiple wsgi applications, and
with an import to this package *from sklearn.features_extraction.text
import TfidfVectorizer *into one of the wsgi application.
We have a virtual host, and the *httpd-vhosts.conf* is like that:
<VirtualHost *:8081>
Alias /static "${SERVER_PATH}/static/"
Alias /ms/static "${SERVER_PATH}/ms/static/"
<Directory "${SERVER_PATH}/static">
Require all granted
</Directory>
<Directory "${SERVER_PATH}/ms/static">
Require all granted
</Directory>
WSGIScriptAlias /ms1 "${SERVER_PATH}/ms/ms1/wsgi.py"
WSGIScriptAlias /ms2 "${SERVER_PATH}/ms/ms2/wsgi.py"
WSGIScriptAlias / "${SERVER_PATH}/wsgi.py"
<Directory "${SERVER_PATH}">
<Files wsgi.py>
Require all granted
</Files>
</Directory>
</VirtualHost>
Each *wsgi.py* file has the same structure:
import os,sys
project_path = os.path.dirname(os.path.dirname(os.path.dirname(__file__)))
if project_path not in sys.path:
sys.path.append(project_path)
os.environ["DJANGO_SETTINGS_MODULE"]='ms.ms1.settings'
# This application object is used by any WSGI server configured to use this
# file. This includes Django's development server, if the WSGI_APPLICATION
# setting points here.
from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()
*How could we configure the Apache server in order to access the three wsgi
applications and with no deadlocks?*Thanks,
Alfonso.
--
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.