summaryrefslogtreecommitdiff
path: root/openstack/etc/horizon/apache-horizon.conf
diff options
context:
space:
mode:
authorPedro Alvarez <pedro.alvarez@codethink.co.uk>2015-05-21 14:44:07 +0000
committerPedro Alvarez <pedro.alvarez@codethink.co.uk>2015-05-22 14:03:50 +0000
commit3dcf9e7a32fb61a9070a077259c708619890b71c (patch)
tree9bd7c783ab3de592dab5e30ba055dedddfcc5d40 /openstack/etc/horizon/apache-horizon.conf
parent6bc975172885b6f5757606dad9d6d383df15adfc (diff)
downloaddefinitions-3dcf9e7a32fb61a9070a077259c708619890b71c.tar.gz
Horizon: Rework how we intall itbaserock/pedroalvarez/os-kilo-horizon3
openstack_dashboard is being installed now in /var/lib/horizon With this we avoid: - Horizon trying to write in /usr/lib/python2.7/site-packages/static - Maintain a copy of local_settings.py - Create /varlib/horizon/openstack_dashboard to only put a link for django.wsgi
Diffstat (limited to 'openstack/etc/horizon/apache-horizon.conf')
-rw-r--r--openstack/etc/horizon/apache-horizon.conf10
1 files changed, 6 insertions, 4 deletions
diff --git a/openstack/etc/horizon/apache-horizon.conf b/openstack/etc/horizon/apache-horizon.conf
index ea88897a..ab3cf0c7 100644
--- a/openstack/etc/horizon/apache-horizon.conf
+++ b/openstack/etc/horizon/apache-horizon.conf
@@ -1,16 +1,18 @@
<VirtualHost *:80>
- WSGIScriptAlias /horizon /var/lib/horizon/openstack_dashboard/django.wsgi
+ WSGIScriptAlias / /var/lib/horizon/openstack_dashboard/wsgi/django.wsgi
WSGIDaemonProcess horizon user=horizon group=horizon processes=3 threads=10 home=/var/lib/horizon display-name=horizon
WSGIApplicationGroup %{GLOBAL}
- RedirectMatch ^/$ /horizon/
-
SetEnv APACHE_RUN_USER apache
SetEnv APACHE_RUN_GROUP apache
WSGIProcessGroup horizon
DocumentRoot /var/lib/horizon/.blackhole
- Alias /static /var/lib/horizon/openstack_dashboard/static
+ Alias /static /var/lib/horizon/static
+
+ <Directory /var/lib/horizon/static>
+ Require all granted
+ </Directory>
<Directory /var/lib/horizon/openstack_dashboard >
Options Indexes FollowSymLinks MultiViews