WSGIPythonPath не работает

Я развертываю свое приложение web.py на Apache2 с помощью mod_wsgi.

Вот мой файл virt_host,

WSGIPythonPath /home/ubuntu/plotwatt/libplotwatt:/home/ubuntu/plotwatt/pwstage/src


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


    Order deny,allow
    Allow from all


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


Я указал путь к моей библиотеке с именем redisStage в WSGIPythonPath. Но, похоже, это не работает для меня. Я делаю какую-то неправильную конфигурацию? Я могу'поместить директиву WSGIPythonPath в директиву VitualHost. В чем должна быть причина?

Ответы на вопрос(1)

Ваш ответ на вопрос