d9e4b6ae68
Change-Id: I0633703cef5a225fe8b689017d21aa4f45ecc7cf Closes-bug: #1708655
42 lines
1.1 KiB
Plaintext
42 lines
1.1 KiB
Plaintext
{% if SSL %}
|
|
# Set "NameVirtualHost {{ NAMEDHOST }}:443" in your httpd.conf file if it's not already done.
|
|
<VirtualHost {{ NAMEDHOST }}:443>
|
|
SSLEngine on
|
|
SSLCertificateFile {{ SSLCERT }}
|
|
SSLCertificateKeyFile {{ SSLKEY }}
|
|
{% if CACERT %} SSLCACertificateFile {{ CACERT }}{% endif %}
|
|
{% else %}
|
|
<VirtualHost {{ NAMEDHOST }}:80>
|
|
{% endif %}
|
|
ServerAdmin {{ ADMIN }}
|
|
ServerName {{ VHOSTNAME }}
|
|
|
|
DocumentRoot {{ PROJECT_ROOT }}/
|
|
|
|
LogLevel warn
|
|
ErrorLog {{ LOGDIR }}/{{ PROJECT_NAME }}-error.log
|
|
CustomLog {{ LOGDIR }}/{{ PROJECT_NAME }}-access.log combined
|
|
|
|
WSGIScriptReloading On
|
|
WSGIDaemonProcess {{ PROJECT_NAME }}_website processes={{ PROCESSES }}
|
|
WSGIProcessGroup {{ PROJECT_NAME }}_website
|
|
WSGIApplicationGroup %{GLOBAL}
|
|
WSGIPassAuthorization On
|
|
|
|
WSGIScriptAlias / {{ WSGI_FILE }}
|
|
{% if APACHE2_VERSION >= 2.4 %}
|
|
<Location "/">
|
|
Require all granted
|
|
</Location>
|
|
{% else %}
|
|
<Location "/">
|
|
Order Allow,Deny
|
|
Allow from all
|
|
</Location>
|
|
{% endif %}
|
|
Alias /static {{ STATIC_PATH }}
|
|
<Location "/static">
|
|
SetHandler None
|
|
</Location>
|
|
</Virtualhost>
|