system-config/modules/openstack_project/templates/cacti.vhost.erb
James E. Blair 0c0220dcbf Add VirtualHost to cacti vhost
It was missing the actual <VirtualHost> tag, which means that it
would lose out to the default vhost file that puppetlabs-apache
creates.  This may have behaved differently on apache2.2, but
it is certainly a problem on apache2.4 now that we have upgraded
to trusty.

Change-Id: I750ea9b8625d8d240616ce8306da81bcee832c95
2016-05-25 12:05:24 -07:00

28 lines
552 B
Plaintext

# ************************************
# Managed by Puppet
# ************************************
<VirtualHost *:80>
ServerName <%= @vhost_name %>
Alias /cacti /usr/share/cacti/site
RewriteEngine on
RewriteRule ^/$ /cacti/graph_view.php [R,L]
<Directory /usr/share/cacti/site>
Options +FollowSymLinks
AllowOverride None
order allow,deny
allow from all
<IfVersion >= 2.4>
Require all granted
</IfVersion>
AddType application/x-httpd-php .php
DirectoryIndex index.php
</Directory>
</VirtualHost>