From 65ce86070073854ddd409cfa987e58f33885e622 Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Wed, 27 May 2020 19:14:26 +0200 Subject: [PATCH 1/1] adjust default host settings --- roles/apache/templates/000-default.conf | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/roles/apache/templates/000-default.conf b/roles/apache/templates/000-default.conf index 0d68ad6..5e02d0b 100644 --- a/roles/apache/templates/000-default.conf +++ b/roles/apache/templates/000-default.conf @@ -1,14 +1,8 @@ -# redirect all undefined virtual hosts to {{ apache.default_host }} +# Default host: serve nothing. -{% if 'letsencrypt' in group_names %} - Redirect temp / https://{{ apache.default_host }}/ -{% else %} - Redirect temp / http://{{ apache.default_host }}/ -{% endif %} {% if 'letsencrypt' in group_names %} Use SSL letsencrypt/live - Redirect temp / https://{{ apache.default_host }}/ {% endif %} -- 2.30.2