{% set vitrage_log_dir = '/var/log/kolla/vitrage' %} {% set python_path = '/usr/lib/python' ~ distro_python_version ~ '/site-packages' if vitrage_install_type == 'binary' else '/var/lib/kolla/venv/lib/python' ~ distro_python_version ~ '/site-packages' %} Listen {{ 'api' | kolla_address | put_address_in_context('url') }}:{{ vitrage_api_port }} ServerSignature Off ServerTokens Prod TraceEnable off KeepAliveTimeout {{ kolla_httpd_keep_alive }} ErrorLog "{{ vitrage_log_dir }}/apache-error.log" CustomLog "{{ vitrage_log_dir }}/apache-access.log" common {% if vitrage_logging_debug | bool %} LogLevel info {% endif %} ## Vhost docroot DocumentRoot "/var/www/cgi-bin/vitrage" ## Directories, there should at least be a declaration for /var/www/cgi-bin/vitrage Options Indexes FollowSymLinks MultiViews AllowOverride None Require all granted ## Logging ErrorLog "{{ vitrage_log_dir }}/vitrage_wsgi_error.log" ServerSignature Off CustomLog "{{ vitrage_log_dir }}/vitrage_wsgi_access.log" combined WSGIApplicationGroup %{GLOBAL} WSGIDaemonProcess vitrage group=vitrage processes={{ openstack_service_workers }} threads=1 user=vitrage python-path={{ python_path }} WSGIProcessGroup vitrage WSGIScriptAlias / "/var/www/cgi-bin/vitrage/app.wsgi" {% if enable_vitrage_prometheus_datasource | bool %} WSGIPassAuthorization On {% endif %}