mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-25 10:03:03 +01:00
e3c8c6afff
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
31 lines
939 B
Text
31 lines
939 B
Text
# This line needs to be in your server's config.
|
|
#Include /etc/httpd/extra/mod_wsgi.conf
|
|
|
|
WSGISocketPrefix /var/run/wsgi
|
|
|
|
<VirtualHost *:80>
|
|
|
|
ServerName graphite
|
|
ServerAlias graphite.*
|
|
|
|
WSGIDaemonProcess graphite processes=5 threads=5 display-name='%{GROUP}' inactivity-timeout=120 user=graphite group=graphite
|
|
WSGIProcessGroup graphite
|
|
WSGIApplicationGroup %{GLOBAL}
|
|
WSGIImportScript /usr/share/graphite-web/graphite.wsgi process-group=graphite application-group=%{GLOBAL}
|
|
WSGIScriptAlias / /usr/share/graphite-web/graphite.wsgi
|
|
|
|
<Directory /usr/share/graphite-web/>
|
|
Order deny,allow
|
|
Allow from all
|
|
Require all granted
|
|
</Directory>
|
|
|
|
Alias /content/ /usr/share/graphite-web/static/content/
|
|
<Location /content/>
|
|
SetHandler None
|
|
</Location>
|
|
|
|
ErrorLog /var/log/httpd/graphite_error_log
|
|
CustomLog /var/log/httpd/graphite_access_log common
|
|
|
|
</VirtualHost>
|