<VirtualHost *:80>{% if server_name %}
    ServerName {{ server_name }}{% endif %}

{% include "utils/apache-vhost.conf" %}
</VirtualHost>
{% if use_https %}
<VirtualHost {{ server_ip }}:443>{% if server_name %}
    ServerName {{ server_name }}{% endif %}

    SSLEngine on
    SSLCertificateFile {{ ssl_cert_file }}
    SSLCertificateKeyFile {{ ssl_cert_key_file }}

{% include "utils/apache-vhost.conf" %}
</VirtualHost>
{% endif %}