8
mod_wsgiでApache2にweb.pyアプリケーションをデプロイしています。ここでWSGIPythonPathが動作していません
は私がWSGIPythonPathでredisStageという名前の私のlibにパスを与えている私の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>
です。しかし、それは私のために働いていないようです。私は間違った設定をしていますか? WSGIPythonPathディレクティブをVitualHostディレクティブに入れることができません。 理由は何か。
同じメモがdjangoと[modwsgiデーモンモード](https://docs.djangoproject.com/en/1.10/howto/deployment/wsgi/modwsgi/#daemon-mode)にあります。 –