diff options
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-horizon/openstack-dashboard-apache.conf')
-rw-r--r-- | meta-openstack/recipes-devtools/python/python-horizon/openstack-dashboard-apache.conf | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-horizon/openstack-dashboard-apache.conf b/meta-openstack/recipes-devtools/python/python-horizon/openstack-dashboard-apache.conf new file mode 100644 index 0000000..5b77639 --- /dev/null +++ b/meta-openstack/recipes-devtools/python/python-horizon/openstack-dashboard-apache.conf | |||
@@ -0,0 +1,55 @@ | |||
1 | LoadModule wsgi_module /usr/lib64/apache2/modules/mod_wsgi.so | ||
2 | |||
3 | # python 2.7.2 has a bug that causes fork run in sub interpreters to fail | ||
4 | # http://bugs.python.org/issue13156 | ||
5 | WSGIApplicationGroup %{GLOBAL} | ||
6 | |||
7 | <VirtualHost *:80> | ||
8 | ServerAdmin webmaster@localhost | ||
9 | WSGIScriptAlias / /usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi | ||
10 | WSGIDaemonProcess horizon user=daemon group=daemon home=/usr/share/openstack-dashboard/openstack_dashboard/static | ||
11 | #WSGIProcessGroup openstack-dashboard | ||
12 | Alias /static /usr/share/openstack-dashboard/openstack_dashboard/static | ||
13 | |||
14 | DocumentRoot /usr/share/apache2/default-site/htdocs | ||
15 | |||
16 | <Directory /> | ||
17 | AllowOverride None | ||
18 | </Directory> | ||
19 | |||
20 | <Directory /usr/share/openstack-dashboard/openstack_dashboard/wsgi/> | ||
21 | <IfVersion < 2.3> | ||
22 | Order allow,deny | ||
23 | Allow from all | ||
24 | </IfVersion> | ||
25 | <IfVersion >= 2.3> | ||
26 | Require all granted | ||
27 | </IfVersion> | ||
28 | </Directory> | ||
29 | |||
30 | Alias /static/horizon %PYTHON_SITEPACKAGES%/horizon/static/horizon | ||
31 | |||
32 | <Directory %PYTHON_SITEPACKAGES%/horizon/static/horizon> | ||
33 | <IfVersion < 2.3> | ||
34 | Order allow,deny | ||
35 | Allow from all | ||
36 | </IfVersion> | ||
37 | <IfVersion >= 2.3> | ||
38 | Require all granted | ||
39 | </IfVersion> | ||
40 | </Directory> | ||
41 | |||
42 | <Directory /usr/share/openstack-dashboard/openstack_dashboard/static/> | ||
43 | <IfVersion < 2.3> | ||
44 | Order allow,deny | ||
45 | Allow from all | ||
46 | </IfVersion> | ||
47 | <IfVersion >= 2.3> | ||
48 | Require all granted | ||
49 | </IfVersion> | ||
50 | </Directory> | ||
51 | |||
52 | ErrorLog /var/log/apache2/openstack-dashboard-error.log | ||
53 | LogLevel debug | ||
54 | CustomLog /var/log/apache2/openstack-dashboard-access.log combined | ||
55 | </VirtualHost> | ||