From 5c321f86c7e4945b4b57eadf43727f496fe6ec9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Dequ=C3=A8nes=20=28Duck=29?= Date: Tue, 20 Dec 2016 22:15:37 +0900 Subject: [PATCH] 'letsencrypt.conf' was included unconditionally --- templates/vhost.conf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/vhost.conf b/templates/vhost.conf index 2e55ef0..b7d5d88 100644 --- a/templates/vhost.conf +++ b/templates/vhost.conf @@ -8,7 +8,9 @@ RewriteCond %{REQUEST_URI} !^/.well-known/acme-challenge/ RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} + {% if use_letsencrypt %} Include {{ _vhost_confdir }}/letsencrypt.conf + {% endif %} {% else %} Include {{ _vhost_confdir }}/*conf {% endif %}