master
1# ************************************
2# Vhost template in module puppetlabs-apache
3# Managed by Puppet
4# ************************************
5
6<VirtualHost *:80>
7 ServerName controller.localdomain
8
9 ## Vhost docroot
10 DocumentRoot "/var/www/"
11 ## Alias declarations for resources outside the DocumentRoot
12 Alias /dashboard/static "/usr/share/openstack-dashboard/static"
13
14 ## Directories, there should at least be a declaration for /var/www/
15
16 <Directory "/var/www/">
17 Options Indexes FollowSymLinks MultiViews
18 AllowOverride None
19 Require all granted
20 </Directory>
21
22 ## Logging
23 ErrorLog "/var/log/httpd/horizon_error.log"
24 ServerSignature Off
25 CustomLog "/var/log/httpd/horizon_access.log" combined
26
27 ## RedirectMatch rules
28 RedirectMatch permanent ^/$ /dashboard
29
30 ## Server aliases X
31 ServerAlias *
32 ServerAlias 192.168.0.10
33 ServerAlias controller.localdomain
34 ServerAlias localhost
35 WSGIDaemonProcess dashboard group=apache processes=3 threads=10 user=apache
36 WSGIProcessGroup dashboard
37 WSGIScriptAlias /dashboard "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi"
38</VirtualHost>