From: Ralf Jung Date: Wed, 27 May 2020 17:14:26 +0000 (+0200) Subject: adjust default host settings X-Git-Url: https://git.ralfj.de/ansible.git/commitdiff_plain/65ce86070073854ddd409cfa987e58f33885e622?ds=inline;hp=6ed68e5d856a1d75a488551c036523670d2245e6 adjust default host settings --- 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 %}