febcb600f1
Use virtualenv for installation of OpenStack projects and dependencies to avoid conflicts with Python libraries installed by non-OpenStack binary packages. Change-Id: I21ecd673b2e93335b1d3dd4e279e940c9d694c3c Implements: blueprint virtualenv
25 lines
980 B
Django/Jinja
25 lines
980 B
Django/Jinja
{% set apache_dir = 'apache2' if kolla_base_distro in ['ubuntu', 'debian'] else 'httpd' %}
|
|
{% set python_path = '/usr/lib/python2.7/site-packages' if kolla_install_type == 'binary' else '/var/lib/kolla/venv/lib/python2.7/site-packages' %}
|
|
Listen {{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}:80
|
|
|
|
<VirtualHost *:80>
|
|
LogLevel warn
|
|
ErrorLog /var/log/{{ apache_dir }}/horizon.log
|
|
CustomLog /var/log/{{ apache_dir }}/horizon-access.log combined
|
|
|
|
WSGIScriptReloading On
|
|
WSGIDaemonProcess horizon-http processes=5 threads=1 user=horizon group=horizon display-name=%{GROUP} python-path={{ python_path }}
|
|
WSGIProcessGroup horizon-http
|
|
WSGIScriptAlias / {{ python_path }}/openstack_dashboard/wsgi/django.wsgi
|
|
WSGIPassAuthorization On
|
|
|
|
<Location "/">
|
|
Require all granted
|
|
</Location>
|
|
|
|
Alias /static {{ python_path }}/static
|
|
<Location "/static">
|
|
SetHandler None
|
|
</Location>
|
|
</Virtualhost>
|