diff options
author | Pedro Alvarez <pedro.alvarez@codethink.co.uk> | 2015-05-21 14:44:07 +0000 |
---|---|---|
committer | Pedro Alvarez <pedro.alvarez@codethink.co.uk> | 2015-06-04 13:50:26 +0000 |
commit | fe422c395e0819f11a0341ebba3250228e9f99b5 (patch) | |
tree | 4a7a61e66bea6c2b4c7247f06f81c6b4e021dad8 /install-files/openstack/etc/horizon/apache-horizon.conf | |
parent | 8672cc4fb9221d1bf7f849380d9c04368fb43c70 (diff) | |
download | definitions-fe422c395e0819f11a0341ebba3250228e9f99b5.tar.gz |
Horizon: Install the openstack_dashboard django project in /var/lib/horizon
With this patch we avoid some problems:
- Horizon trying to write in /usr/lib/python2.7/site-packages/static
- We won't have to maintain a copy of local_settings.py
- The workaround of creating a symlink for django.wsgi is not needed
now.
This patch also changes apache-horizon.conf to
- Change the path of django.wsgi file
- Load the horizon server with the url 'http://<IP-of-OpenStack>' (the
'horizon/' suffix is removed)
- Grant permissions to access to /var/lib/horizon/static
Also changes 'tempest.conf' to change Horizon urls.
Diffstat (limited to 'install-files/openstack/etc/horizon/apache-horizon.conf')
-rw-r--r-- | install-files/openstack/etc/horizon/apache-horizon.conf | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/install-files/openstack/etc/horizon/apache-horizon.conf b/install-files/openstack/etc/horizon/apache-horizon.conf index ea88897a..ab3cf0c7 100644 --- a/install-files/openstack/etc/horizon/apache-horizon.conf +++ b/install-files/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 |