用于自定义前缀的石墨webapp的apache配置

时间:2015-06-27 18:37:01

标签: apache graphite

我正在尝试在linux主机上为石墨设置石墨webapp。我在设置apache配置时遇到了问题,尤其是在设置自定义URL时。

我们的apache网址始终呈现http://internalapps.com/INT/<appname>形式的网址。所以我正在尝试将石墨webapp设置为 http://internalapps.com/INT/graphite

我们的石墨设置位于磁盘上 / home / internal / tools / graphite /

我的问题是,当我在应用这些更改后重新启动apache时,网址http://internalapps.com/INT/graphite无法解析为任何地址。我在apache日志中看不到任何错误

WSGISocketPrefix run/wsgi

<VirtualHost *:5002>
        ServerName stagehost2
        DocumentRoot "/home/internal/tools/graphite/webapp"
        ErrorLog /home/internal/tools/graphite/storage/log/webapp/error.log
        CustomLog /home/internal/tools/graphite/storage/log/webapp/access.log common

        # I've found that an equal number of processes & threads tends
        # to show the best performance for Graphite (ymmv).
        WSGIDaemonProcess graphite processes=5 threads=5 display-name='%{GROUP}' inactivity-timeout=120
        WSGIProcessGroup graphite
        WSGIApplicationGroup %{GLOBAL}
        WSGIImportScript /home/internal/tools/graphite/conf/graphite.wsgi process-group=graphite application-group=%{GLOBAL}

        # XXX You will need to create this file! There is a graphite.wsgi.example
        # file in this directory that you can safely use, just copy it to graphite.wgsi
        WSGIScriptAlias /INT /home/internal/tools/graphite/conf/graphite.wsgi

        Alias /content/ /home/internal/tools/graphite/webapp/content/
        <Location "/content/">
                SetHandler None
        </Location>


        Alias /media/ "/home/internal/tools/python/lib/python2.7/site-packages/django/contrib/admin/media/"
        <Location "/media/">
                SetHandler None
        </Location>

        <Directory /home/internal/tools/graphite/conf/>
                Order deny,allow
                Allow from all
        </Directory>

</VirtualHost>

0 个答案:

没有答案