mod逖wsgi不与djang的pinax一起工作

2024-10-03 11:18:23 发布

您现在位置:Python中文网/ 问答频道 /正文

我努力为一个pinax项目配置mod\wsgi。我严格按照网站上的指示操作(pinaxproject.org网站),不幸的是,我总是收到以下错误:

[Thu Aug 26 17:32:46 2010][error][client 173.48.119.55](13)权限被拒绝:mod_wsgi(pid=26749):无法连接到wsgi守护进程'www.mysiste.com-production多次尝试后,'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>

Tags: commodwsgi网站usrhtmlwwwalias