]> git.pld-linux.org Git - packages/graphite-web.git/blob - apache.conf
use apache 2.2/2.4 compatible config
[packages/graphite-web.git] / apache.conf
1 # Graphite Web Basic mod_wsgi vhost
2 <VirtualHost *:80>
3         ServerName graphite-web
4         DocumentRoot "/usr/share/graphite/webapp"
5
6         ErrorLog /var/log/httpd/graphite-web-error.log
7         CustomLog /var/log/httpd/graphite-web-access.log common
8
9         Alias /media/ "##PYTHON_SITELIB##/django/contrib/admin/media/"
10         Alias /content/ "/usr/share/graphite/webapp/content/"
11
12         WSGIScriptAlias / /usr/share/graphite/graphite-web.wsgi
13         WSGIImportScript /usr/share/graphite/graphite-web.wsgi process-group=%{GLOBAL} application-group=%{GLOBAL}
14
15         <Location "/content/">
16                 SetHandler None
17         </Location>
18
19         <Location "/media/">
20                 SetHandler None
21         </Location>
22 </VirtualHost>
23
24 <Directory /usr/share/graphite>
25         # Apache 2.x
26         <IfModule !mod_authz_core.c>
27                 Order allow,deny
28                 Allow from all
29         </IfModule>
30         # Apache 2.4
31         <IfModule mod_authz_core.c>
32                 Require all granted
33         </IfModule>
34 </Directory>
This page took 0.035869 seconds and 3 git commands to generate.