mod_wsgi不使用django的pinax

时间:2010-08-26 21:54:02

标签: python django mod-wsgi web-deployment-project pinax

我努力为pinax项目配置mod_wsgi。我按照网站上的确切说明(pinaxproject.org),不幸的是,我总是遇到以下错误:

[2010年8月26日17:32:46] [错误] [客户端173.48.119.55](13)权限被拒绝:mod_wsgi(pid = 26749):无法连接到WSGI守护进程'www.mysiste.com-多次尝试后生成'on'/etc/httpd/logs/wsgi.26745.0.1.sock'。

这是代码:

LoadModule wsgi_module modules/mod_wsgi.so
<VirtualHost xx.xxx.xxx.xx:80> 
    ServerName mysite.com 
    ServerAlias www.mysite.com
    ServerAdmin mymailg@yahoo.com

   WSGIDaemonProcess www.mysite.com-production python-path=/usr/pinax/pinax-env/lib/python2.6/site-packages
   WSGIProcessGroup www.mysite.com-production
   WSGIScriptAlias / /usr/pinax/newsino/deploy/pinax.wsgi
   <Directory /usr/pinax/newsino/deploy>
      Order deny,allow
      Allow from all
   </Directory>

   Alias /robots.txt /srv/www/newsino/public_html/robots.txt
   Alias /favicon.ico /srv/www/newsino/public_html/favicon.ico
   Alias /images /srv/www/newsino/public_html/images
   Alias /static /srv/www/newsino/public_html/static

   ErrorLog /srv/www/newsino/logs/error.log
   CustomLog /srv/www/newsino/logs/access.log combined
</VirtualHost>

1 个答案:

答案 0 :(得分:0)