这个WSGI应用程序无法访问守护程序进程:/mod.wsgi
作者:互联网
为什么我会收到此错误?
Daemon process called 'dom_server' cannot be accessed by this WSGI application: /home/stakkit/webapps/dom_server/dom-fisica.wsgi
dom-fisica.wsgi文件:
import os
import sys
#sys.path.append('/home/stakkit/webapps/dom_server')
sys.path.append('/home/stakkit/webapps/dom_server/osqa')
os.environ['DJANGO_SETTINGS_MODULE'] = 'osqa.settings_fisica'
import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()
这是我的httpd.conf http://pastebin.com/dQfq1RTN
谢谢!
解决方法:
将VirtualHost之外的WSGIDaemonProcess移动到全局范围.
如果VirtualHost是同一个网站的80/443对,则只能与您相同.
标签:python,django,apache,mod-wsgi,httpd-conf 来源: https://codeday.me/bug/20190723/1512069.html