Created
August 27, 2012 13:07
-
-
Save lonefreak/3488270 to your computer and use it in GitHub Desktop.
Graphite Virtual Host
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# You may need to manually edit this file to fit your needs. | |
# This configuration assumes the default installation prefix | |
# of /opt/graphite/, if you installed graphite somewhere else | |
# you will need to change all the occurances of /opt/graphite/ | |
# in this file to your chosen install location. | |
<VirtualHost *:80> | |
ServerName <HOST PARA ACESSO AOS RELATORIOS> | |
DocumentRoot "/opt/graphite/webapp" | |
ErrorLog /opt/graphite/storage/log/webapp/error.log | |
CustomLog /opt/graphite/storage/log/webapp/access.log common | |
<Location "/"> | |
SetHandler python-program | |
PythonPath "['/opt/graphite/webapp'] + ['/usr/local/lib/python2.6/dist-packages/'] + sys.path" | |
PythonHandler django.core.handlers.modpython | |
SetEnv DJANGO_SETTINGS_MODULE graphite.settings | |
PythonDebug Off | |
PythonAutoReload Off | |
</Location> | |
<Location "/content/"> | |
SetHandler None | |
</Location> | |
<Location "/media/"> | |
SetHandler None | |
</Location> | |
# NOTE: In order for the django admin site media to work you | |
# must change @DJANGO_ROOT@ to be the path to your django | |
# installation, which is probably something like: | |
# /usr/lib/python2.6/site-packages/django | |
Alias /media/ "/usr/lib/python2.4/site-packages/django/contrib/admin/media/" | |
</VirtualHost> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment