WSGIPythonPath不工作

WSGIPythonPath不工作,python,apache2,mod-wsgi,pythonpath,Python,Apache2,Mod Wsgi,Pythonpath,我正在使用mod_wsgi在Apache2上部署我的web.py应用程序 这是我的virt_主机文件 WSGIPythonPath /home/ubuntu/plotwatt/libplotwatt:/home/ubuntu/plotwatt/pwstage/src <VirtualHost *:20108> ServerAdmin gslabrails.dev.plotwatt.com DocumentRoot /var/www WSGIScriptAlias / /var/w

我正在使用mod_wsgi在Apache2上部署我的web.py应用程序

这是我的virt_主机文件

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/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组=ubuntu进程=5线程=3
WSGIProcessGroup当前成本
WSGIApplicationGroup%{GLOBAL}
AddType text/html.py
命令拒绝,允许
通融
ErrorLog/var/log/apache2/currentcost\u error.log
#可能的值包括:调试、信息、通知、警告、错误、临界值、,
#警惕,埃默格。
日志级别警告
CustomLog/var/log/apache2/currentcost\u access.log组合
我已经在WSGIPythonPath中给出了名为redistage的lib的路径。但是,它似乎对我不起作用。我是否进行了错误的配置? 我不能将WSGIPythonPath指令放在VitualHost指令中。 原因何在

根据,在使用守护程序模式时不能使用
WSGIPythonPath
。使用“python path”选项来替换。django和