我努力为一个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>
阅读:
http://code.google.com/p/modwsgi/wiki/ConfigurationIssues#Location_Of_UNIX_Sockets
如图所示,设置WSGISocketPrefix指令。在
相关问题 更多 >
编程相关推荐