horizon/openstack_dashboard/management/commands/apache_vhost.conf.template
Radomir Dopieralski d9e4b6ae68 Use WSGIApplicationGroup %{GLOBAL} in mod_wsgi configuration
Change-Id: I0633703cef5a225fe8b689017d21aa4f45ecc7cf
Closes-bug: #1708655
2017-08-04 14:52:43 +02:00

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>