mod_wsgi Exception occurred processing WSGI script '/usr/share/graphite-web/graphite.wsgi'
我只将apache-graphite.conf复制到/ etc / apache / sites-available,为什么会抱怨graphite.wsgi?
apache-graphite.conf的内容:
import os, sys
os.environ['DJANGO_SETTINGS_MODULE'] = 'graphite.settings'
import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()
from graphite.logger import log
log.info("graphite.wsgi - pid %d - reloading search index" % os.getpid())
import graphite.metrics.search
答案 0 :(得分:0)
graphite.wsgi是您的apache网络服务器调用的wsgi application来回答传入的请求。
apache-graphite.conf站点定义了一个运行django的wsgi应用程序,它将使用石墨代码处理请求。我想它看起来更像是这样:https://github.com/graphite-project/graphite-web/blob/0.9.x/examples/example-graphite-vhost.conf
graphite.wsgi通常看起来像:https://github.com/graphite-project/graphite-web/blob/0.9.x/conf/graphite.wsgi.example