0c0220dcbf
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
28 lines
552 B
Plaintext
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>
|