
We're needlessly nesting "install" under "params". Let's not do that. Change-Id: Ia8ed491bd92d8989a8423a9fbe3a8deb705e7dd7
28 lines
904 B
Django/Jinja
28 lines
904 B
Django/Jinja
<VirtualHost *:80>
|
|
ServerName {{ ara.config.host }}
|
|
|
|
ErrorLog {{ apache_log_path }}/ara-error.log
|
|
LogLevel warn
|
|
CustomLog {{ apache_log_path }}/ara-access.log combined
|
|
|
|
SetEnv ANSIBLE_CONFIG /etc/ara/ara.cfg
|
|
{% if ara.install.pip.virtualenv -%}
|
|
SetEnv ARA_WSGI_USE_VIRTUALENV 1
|
|
SetEnv ARA_WSGI_VIRTUALENV_PATH {{ ara.install.pip.virtualenv_path }}
|
|
|
|
WSGIDaemonProcess ara user=ara group=ara processes=1 threads=4 python-home={{ ara.install.pip.virtualenv_path }}
|
|
{% else -%}
|
|
WSGIDaemonProcess ara user=ara group=ara processes=1 threads=4
|
|
{% endif -%}
|
|
WSGIScriptAlias {{ ara.config.application_root }} {{ wsgi_script }}
|
|
WSGIProcessGroup ara
|
|
WSGIApplicationGroup %{GLOBAL}
|
|
|
|
<Directory "{{ wsgi_script | dirname }}">
|
|
<Files "ara-wsgi">
|
|
Allow from all
|
|
Satisfy Any
|
|
</Files>
|
|
</Directory>
|
|
</VirtualHost>
|