2014-01-12 18:29:25 +11:00
|
|
|
# ************************************
|
|
|
|
# Managed by Puppet
|
|
|
|
# ************************************
|
|
|
|
|
2016-05-25 12:05:24 -07:00
|
|
|
<VirtualHost *:80>
|
|
|
|
ServerName <%= @vhost_name %>
|
2014-01-12 18:29:25 +11:00
|
|
|
|
2016-05-25 12:05:24 -07:00
|
|
|
Alias /cacti /usr/share/cacti/site
|
2017-12-14 19:02:25 -05:00
|
|
|
Alias /javascript /usr/share/javascript
|
2014-01-12 18:29:25 +11:00
|
|
|
|
2016-05-25 12:05:24 -07:00
|
|
|
RewriteEngine on
|
|
|
|
RewriteRule ^/$ /cacti/graph_view.php [R,L]
|
2014-01-12 18:29:25 +11:00
|
|
|
|
2016-05-25 12:05:24 -07:00
|
|
|
<Directory /usr/share/cacti/site>
|
|
|
|
Options +FollowSymLinks
|
|
|
|
AllowOverride None
|
|
|
|
order allow,deny
|
|
|
|
allow from all
|
|
|
|
<IfVersion >= 2.4>
|
|
|
|
Require all granted
|
|
|
|
</IfVersion>
|
2014-01-12 18:29:25 +11:00
|
|
|
|
2016-05-25 12:05:24 -07:00
|
|
|
AddType application/x-httpd-php .php
|
2016-02-25 12:33:52 -05:00
|
|
|
|
2016-05-25 12:05:24 -07:00
|
|
|
DirectoryIndex index.php
|
|
|
|
</Directory>
|
|
|
|
|
|
|
|
</VirtualHost>
|