aboutsummaryrefslogtreecommitdiffstats
path: root/meta-openstack/recipes-devtools/python/python-horizon/openstack-dashboard-apache.conf
blob: 413078ae7837bfaf0a3d4a7ce6eb0b01d42f1deb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
LoadModule wsgi_module %LIBDIR%/apache2/modules/mod_wsgi.so

# python 2.7.2 has a bug that causes fork run in sub interpreters to fail
# http://bugs.python.org/issue13156
WSGIApplicationGroup %{GLOBAL}

<VirtualHost *:80>
    ServerAdmin webmaster@localhost
    WSGIScriptAlias / /usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi
    WSGIDaemonProcess horizon user=daemon group=daemon home=/usr/share/openstack-dashboard/openstack_dashboard/static
    #WSGIProcessGroup openstack-dashboard
    Alias /static /usr/share/openstack-dashboard/openstack_dashboard/static

    DocumentRoot /usr/share/apache2/default-site/htdocs

    <Directory />
    	AllowOverride None
    </Directory>

    <Directory /usr/share/openstack-dashboard/openstack_dashboard/wsgi/>
        <IfVersion < 2.3>
    	Order allow,deny
    	Allow from all
        </IfVersion>
        <IfVersion >= 2.3>
        Require all granted
        </IfVersion>
    </Directory>

    Alias /static/horizon %PYTHON_SITEPACKAGES%/horizon/static/horizon

    <Directory %PYTHON_SITEPACKAGES%/horizon/static/horizon>
        <IfVersion < 2.3>
    	Order allow,deny
    	Allow from all
        </IfVersion>
        <IfVersion >= 2.3>
        Require all granted
        </IfVersion>
    </Directory>

    <Directory /usr/share/openstack-dashboard/openstack_dashboard/static/>
        <IfVersion < 2.3>
    	Order allow,deny
    	Allow from all
        </IfVersion>
        <IfVersion >= 2.3>
        Require all granted
        </IfVersion>
    </Directory>

    ErrorLog /var/log/apache2/openstack-dashboard-error.log
    LogLevel debug
    CustomLog /var/log/apache2/openstack-dashboard-access.log combined
 </VirtualHost>