{% if SSL %} # Set "NameVirtualHost {{ NAMEDHOST }}:443" in your httpd.conf file if it's not already done. SSLEngine on SSLCertificateFile {{ SSLCERT }} SSLCertificateKeyFile {{ SSLKEY }} {% if CACERT %} SSLCACertificateFile {{ CACERT }}{% endif %} {% else %} {% 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 %} Require all granted {% else %} Order Allow,Deny Allow from all {% endif %} Alias /static {{ STATIC_PATH }} SetHandler None