add shared apache config
[ansible.git] / roles / apache / templates / 000-default.conf
diff --git a/roles/apache/templates/000-default.conf b/roles/apache/templates/000-default.conf
new file mode 100644 (file)
index 0000000..8865a0a
--- /dev/null
@@ -0,0 +1,8 @@
+# redirect all undefined virtual hosts to {{ apache.default_host }}
+<VirtualHost *:80>
+    Redirect temp / https://{{ apache.default_host }}/
+</VirtualHost>
+<VirtualHost *:443>
+    Use SSL letsencrypt/live
+    Redirect temp / https://{{ apache.default_host }}/
+</VirtualHost>