aboutsummaryrefslogtreecommitdiff
path: root/roles/apache/files/000-default.conf
diff options
context:
space:
mode:
Diffstat (limited to 'roles/apache/files/000-default.conf')
-rw-r--r--roles/apache/files/000-default.conf9
1 files changed, 9 insertions, 0 deletions
diff --git a/roles/apache/files/000-default.conf b/roles/apache/files/000-default.conf
new file mode 100644
index 0000000..922eb96
--- /dev/null
+++ b/roles/apache/files/000-default.conf
@@ -0,0 +1,9 @@
+<VirtualHost *:80>
+ ServerAdmin webmaster@localhost
+
+ RewriteEngine On
+ RewriteCond %{HTTPS} !=on
+ RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]
+</VirtualHost>
+
+# vim: syntax=apache ts=4 sw=4 sts=4 sr noet