diff --git a/templates/etc/apache2/sites-available/inc/site_https_ssl.j2 b/templates/etc/apache2/sites-available/inc/site_https_ssl.j2 index eab4113..97bc83c 100644 --- a/templates/etc/apache2/sites-available/inc/site_https_ssl.j2 +++ b/templates/etc/apache2/sites-available/inc/site_https_ssl.j2 @@ -4,7 +4,7 @@ SSLEngine on SSLCertificateKeyFile {{ APACHE_CONFIG.ssl.path }}/{{ name }}.key SSLCertificateFile {{ APACHE_CONFIG.ssl.path }}/{{ name }}.crt -{% if site.ssl.mode != 'selfsigned' %} +{% if site.ssl.mode != 'selfsigned' and not site.ssl.no_chainfile | default(true) %} SSLCertificateChainFile {{ APACHE_CONFIG.ssl.path }}/{{ name }}{% if site.ssl.mode == 'letsencrypt' %}.fullchain{% else %}.chain{% endif %}.crt {% endif %}