openerp 7 mod_wsgi与目录匹配有问题

时间:2014-03-04 17:22:47

标签: apache apache2 openerp mod-wsgi wsgi

我试图在apache2上用mod_wsgi实现Openerp 7这是我的vhost.conf中的部分

<VirtualHost *:80>
DocumentRoot /var/www/example.com/web
ServerName example.com
<Directory /var/www/example.com/web>
      Options FollowSymLinks
      AllowOverride All
      Order allow,deny
      Allow from all
</Directory>

WSGIScriptAlias /erp /opt/openerp/server/openerp-wsgi.py
WSGIDaemonProcess openerp user=openerp group=openerp processes=2 python-path=/opt/openerp/server/ display-name=apache-openerp
WSGIProcessGroup openerp

<Directory /opt/openerp/server>
    Order allow,deny
    Allow from all
</Directory>

</VirtualHost>

但Apache日志总是显示

[Tue Mar 04 17:08:48 2014] [error] 2014-03-04 17:08:48,049 32133 INFO bc openerp.modules.loading: Modules loaded.
[Tue Mar 04 18:08:48 2014] [error] [client xxx.xxx.xx.xx] File does not exist: /var/www/example.com/web/web, referer: http://example.com/erp

为什么wsgi解释器始终指向... / web / web?

的任何建议

0 个答案:

没有答案