mod_wsgi 无法与 django 的 pinax 一起使用
我努力为 pinax 项目配置 mod_wsgi 。我按照网站(pinaxproject.org)的确切说明进行操作,不幸的是,我总是收到以下错误:
[Thu Aug 26 17:32:46 2010] [error] [client 173.48.119.55] (13)Permission returned: mod_wsgi (pid=26749):多次尝试后,无法连接到“/etc/httpd/logs/wsgi.26745.0.1.sock”上的 WSGI 守护进程“www.mysiste.com-product”。
这是代码:
LoadModule wsgi_module modules/mod_wsgi.so
<VirtualHost xx.xxx.xxx.xx:80>
ServerName mysite.com
ServerAlias www.mysite.com
ServerAdmin [email protected]
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>
I tried hard to configure mod_wsgi for an pinax project. I followed the exact instructions from the site (pinaxproject.org), unfortunately, I always got the following error:
[Thu Aug 26 17:32:46 2010] [error] [client 173.48.119.55] (13)Permission denied: mod_wsgi (pid=26749): Unable to connect to WSGI daemon process 'www.mysiste.com-production' on '/etc/httpd/logs/wsgi.26745.0.1.sock' after multiple attempts.
here is the code:
LoadModule wsgi_module modules/mod_wsgi.so
<VirtualHost xx.xxx.xxx.xx:80>
ServerName mysite.com
ServerAlias www.mysite.com
ServerAdmin [email protected]
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>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
阅读:
http://code.google.com/p/modwsgi/wiki/ ConfigurationIssues#Location_Of_UNIX_Sockets
按照指示设置 WSGISocketPrefix 指令。
Read:
http://code.google.com/p/modwsgi/wiki/ConfigurationIssues#Location_Of_UNIX_Sockets
Setup WSGISocketPrefix directive as indicated.