काम नहीं कर रहा है मैं mod_wsgi के साथ Apache2 पर अपना web.py एप्लिकेशन तैनात कर रहा हूं।WSGIPythonPath
यहाँ मेरी virt_host फ़ाइल है,
WSGIPythonPath /home/ubuntu/plotwatt/libplotwatt:/home/ubuntu/plotwatt/pwstage/src
<VirtualHost *:20108>
ServerAdmin gslabrails.dev.plotwatt.com
DocumentRoot /var/www
WSGIScriptAlias//var/www/currentcost/server.py
WSGIDaemonProcess currentcost user=ubuntu group=ubuntu processes=5 threads=3
WSGIProcessGroup currentcost
WSGIApplicationGroup %{GLOBAL}
AddType text/html .py
<Directory /var/www/currentcost/>
Order deny,allow
Allow from all
</Directory>
ErrorLog /var/log/apache2/currentcost_error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/currentcost_access.log combined
</VirtualHost>
मैं अपने lib WSGIPythonPath में redisStage नामित करने के लिए पथ दिया है। लेकिन, ऐसा लगता है कि मेरे लिए काम नहीं कर रहा है। क्या मैं कोई गलत विन्यास कर रहा हूं? मैं विटुअलहोस्ट निर्देश के अंदर WSGIPythonPath निर्देश नहीं डाल सकता। कारण क्या होना चाहिए?
एक ही नोट django और [modwsgi डिमन मोड] के लिए जाता है (https://docs.djangoproject.com/en/1.10/howto/deployment/wsgi/modwsgi/#daemon-mode) –