Add docroot permissions for apache >= 2.4

When running in apache 2.4, the following sort of error was observed
when trying to access the graphite Web app:

AH01630: client denied by server configuration:
/var/lib/graphite/webapp/content/js/composer.js, referer: httpcomposer/?

This change conditionally adds the appropriate permissions to allow
static web content to be served.

Change-Id: I7826a2fdb1b47d39eb7a4a43c6896a16fdbb32c8
This commit is contained in:
John Warren 2015-12-03 07:08:21 -05:00
parent a25d50cfb7
commit 2efd63e6e2
1 changed files with 5 additions and 0 deletions

View File

@ -61,4 +61,9 @@
Allow from all
</IfVersion>
</Directory>
<IfVersion >= 2.4>
<Directory /var/lib/graphite/webapp/content/>
Require all granted
</Directory>
</IfVersion>
</VirtualHost>