system-config/modules/openstack_project/templates/cacti.vhost.erb
Paul Belanger 46750e896a
Add javascript alias to cacti.o.o for xenial
It seems there have been some changes to how javascript libraries are
installed in ubuntu xenial. Add an alias to /usr/share/javascript.

Change-Id: I1ea75cd5c9fddc04515414427f9f322d83f14ecb
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-12-14 19:03:42 -05:00

29 lines
594 B
Plaintext

# ************************************
# 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>