X-Git-Url: https://git.ralfj.de/ansible.git/blobdiff_plain/93e78be7a2101609149534138cbd4c627a80c393..84e76cbc2d3f07b03cd081e80f88356a10baae5a:/roles/apache/templates/000-default.conf?ds=inline
diff --git a/roles/apache/templates/000-default.conf b/roles/apache/templates/000-default.conf
index 23f6f5e..0d68ad6 100644
--- a/roles/apache/templates/000-default.conf
+++ b/roles/apache/templates/000-default.conf
@@ -1,6 +1,10 @@
# redirect all undefined virtual hosts to {{ apache.default_host }}
+{% if 'letsencrypt' in group_names %}
Redirect temp / https://{{ apache.default_host }}/
+{% else %}
+ Redirect temp / http://{{ apache.default_host }}/
+{% endif %}
{% if 'letsencrypt' in group_names %}