[英]WSGISocketPrefix not helping with 503 Service Temporarily Unavailable error
嘗試在守護程序模式下設置mod_wsgi時,我收到“ 503服務暫時不可用”錯誤。 是什么讓我好奇,將WSGISocketPrefix設置為/ var / run / wsgi或任何其他目錄並沒有給我任何幫助。 錯誤日志中仍然顯示“(13)權限被拒絕:mod_wsgi(pid = 21696):無法連接到WSGI守護進程...”。
你能給我什么建議嗎? 謝謝。
這是我的虛擬主機配置:
<VirtualHost *:80>
DocumentRoot /home/anti1869/blabla/http
CustomLog /var/log/apache2/anti1869/blabla/access.log combined
ErrorLog /var/log/apache2/anti1869/blabla/error.log
<IfModule peruser.c>
ServerEnvironment anti1869 anti1869
Processor anti1869 anti1869
</IfModule>
# <IfModule mod_suexec.c>
# SuexecUserGroup anti1869 anti1869
# </IfModule>
# <IfModule mod_suexec>
# SuexecUserGroup anti1869 anti1869
# </IfModule>
ServerName blabla.com
ServerAlias www.blabla.com
Alias /.awstats/icon /usr/share/awstats/wwwroot/icon
WSGIDaemonProcess blabla.com user=anti1869 group=anti1869 processes=2 threads=15 display-name=%{GROUP}
WSGIProcessGroup blabla.com
</VirtualHost>
為worker或prefork MPM編譯的mod_wsgi.so不適用於peruser MPM。 甚至不確定如果mod_wsgi是從源代碼編譯的,是否可以與peruser MPM一起使用。 您正在使用什么MPM? 是您的配置所建議的peruser嗎?
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.