# ************************************
# Managed by Puppet
# ************************************

<VirtualHost *:80>
  ServerName <%= @vhost_name %>

  Alias /cacti /usr/share/cacti/site
  Alias /javascript /usr/share/javascript

  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>