45 lines
1.6 KiB
Django/Jinja
45 lines
1.6 KiB
Django/Jinja
# {{ ansible_managed }}
|
|
|
|
<VirtualHost *:{{ adjutant_service_port }}>
|
|
ServerName {{ ansible_hostname }}
|
|
|
|
WSGIDaemonProcess adjutant lang='en_US.UTF-8' locale='en_US.UTF-8' user={{ adjutant_system_user_name }} group={{ adjutant_system_group_name }} processes={{ adjutant_wsgi_processes }} threads={{ adjutant_wsgi_threads }} display-name=%{GROUP}
|
|
WSGIProcessGroup adjutant
|
|
WSGIScriptAlias / /var/www/cgi-bin/adjutant/adjutant-api
|
|
WSGIApplicationGroup %{GLOBAL}
|
|
|
|
<IfVersion >= 2.4>
|
|
ErrorLogFormat "%{cu}t %M"
|
|
</IfVersion>
|
|
|
|
LogLevel {{ adjutant_apache_log_level }}
|
|
ErrorLog /var/log/adjutant/adjutant-apache-error.log
|
|
CustomLog /var/log/adjutant/adjutant-access.log combined
|
|
|
|
{% if adjutant_ssl | bool and adjutant_service_internaluri_proto == "https" -%}
|
|
SSLEngine on
|
|
SSLCertificateFile {{ adjutant_ssl_cert }}
|
|
SSLCertificateKeyFile {{ adjutant_ssl_key }}
|
|
{% if adjutant_user_ssl_ca_cert is defined -%}
|
|
SSLCACertificateFile {{ adjutant_ssl_ca_cert }}
|
|
{% endif -%}
|
|
SSLCompression Off
|
|
SSLProtocol {{ adjutant_ssl_protocol }}
|
|
SSLHonorCipherOrder On
|
|
SSLCipherSuite {{ adjutant_ssl_cipher_suite }}
|
|
SSLOptions +StdEnvVars +ExportCertData
|
|
{% endif %}
|
|
</VirtualHost>
|
|
|
|
<Directory "/var/www/cgi-bin">
|
|
AllowOverride None
|
|
Options +ExecCGI -Includes
|
|
<IfModule !mod_access_compat.c>
|
|
Require all granted
|
|
</IfModule>
|
|
<IfModule mod_access_compat.c>
|
|
Order allow,deny
|
|
Allow from all
|
|
</IfModule>
|
|
</Directory>
|