templates: gnocchi-httpd: Ensure proper user control in gnocchi root

We need to ensure that /var/www/cgi-bin/ has proper user control since
different distributions place cgi-bin in different directories and as
such the default ones may not apply for aodh. For example, openSUSE
places it in /srv/www/cgi-bin and as such accessing the gnocchi
resources results to 403 HTTP errors.

Change-Id: I146190d56f2d68b84b52cc0c349add321fdf08cc
This commit is contained in:
Markos Chandras 2017-07-11 14:15:23 +01:00
parent 9c494ec116
commit 68343520de
1 changed files with 12 additions and 0 deletions

View File

@ -28,3 +28,15 @@
SSLOptions +StdEnvVars +ExportCertData
{% endif %}
</VirtualHost>
<Directory "/var/www/cgi-bin">
AllowOverride None
Options +ExecCGI -Includes
<IfModule !mod_access_compat.c>
Require all granted
</IfModule>
<IfModule mod_access_compat.c>
Order allow,deny
Allow from all
</IfModule>
</Directory>