
Useful api_interface_address variable has been define here: https://github.com/openstack/kolla-ansible/blob/master/ansible/group_vars/all.yml#L57 In order to simplify codebase we must use it as much as possible. Change-Id: I18fec19bf69e05a22a4142a9cd1165eccd022455
26 lines
936 B
Django/Jinja
26 lines
936 B
Django/Jinja
{% 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 {{ api_interface_address }}:{{ aodh_api_port }}
|
|
|
|
<VirtualHost *:{{ aodh_api_port }}>
|
|
|
|
## Vhost docroot
|
|
DocumentRoot "/var/www/cgi-bin/aodh"
|
|
|
|
## Directories, there should at least be a declaration for /var/www/cgi-bin/aodh
|
|
|
|
<Directory "/var/www/cgi-bin/aodh">
|
|
Options Indexes FollowSymLinks MultiViews
|
|
AllowOverride None
|
|
Require all granted
|
|
</Directory>
|
|
|
|
## Logging
|
|
ErrorLog "/var/log/kolla/aodh/aodh_wsgi_error.log"
|
|
ServerSignature Off
|
|
CustomLog "/var/log/kolla/aodh/aodh_wsgi_access.log" combined
|
|
WSGIApplicationGroup %{GLOBAL}
|
|
WSGIDaemonProcess aodh group=aodh processes={{ openstack_service_workers }} threads=1 user=aodh python-path={{ python_path }}
|
|
WSGIProcessGroup aodh
|
|
WSGIScriptAlias / "/var/www/cgi-bin/aodh/app.wsgi"
|
|
</VirtualHost>
|