diff options
author | Francisco Redondo Marchena <francisco.marchena@codethink.co.uk> | 2015-04-13 15:57:48 +0000 |
---|---|---|
committer | Francisco Redondo Marchena <francisco.marchena@codethink.co.uk> | 2015-04-13 15:57:48 +0000 |
commit | 31f8afcf80cacf8cbfffd7cbdfc75241d8e3a223 (patch) | |
tree | 8fc55cdecba638aa86b6b913be0eb869aea620ed /openstack/etc/horizon/apache-horizon.conf | |
parent | 736a9e13e5586063e7a188b6cb57e9c1aea3b6d8 (diff) | |
download | definitions-baserock/openstack-baserock-upstream-all.tar.gz |
everything elsebaserock/openstack-baserock-upstream-all
Change-Id: I882fb2ad7a4cdbbd9daf11d802b4f84d1b79b03b
Diffstat (limited to 'openstack/etc/horizon/apache-horizon.conf')
-rw-r--r-- | openstack/etc/horizon/apache-horizon.conf | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/openstack/etc/horizon/apache-horizon.conf b/openstack/etc/horizon/apache-horizon.conf new file mode 100644 index 00000000..ea88897a --- /dev/null +++ b/openstack/etc/horizon/apache-horizon.conf @@ -0,0 +1,34 @@ +<VirtualHost *:80> + WSGIScriptAlias /horizon /var/lib/horizon/openstack_dashboard/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 + + <Directory /var/lib/horizon/openstack_dashboard > + Options Indexes FollowSymLinks MultiViews + AllowOverride None + # Apache 2.4 uses mod_authz_host for access control now (instead of + # "Allow") + <IfVersion < 2.4> + Order allow,deny + Allow from all + </IfVersion> + <IfVersion >= 2.4> + Require all granted + </IfVersion> + </Directory> + + ErrorLog /var/log/httpd/horizon_error.log + LogLevel warn + CustomLog /var/log/httpd/horizon_access.log combined +</VirtualHost> + +WSGISocketPrefix /var/run/httpd |