aboutsummaryrefslogtreecommitdiffstats
path: root/deployment/websites
diff options
context:
space:
mode:
authorThomas Backlund <tmb@mageia.org>2020-05-13 20:03:24 +0300
committerThomas Backlund <tmb@mageia.org>2020-05-13 20:03:24 +0300
commita3a8c014620c8131bdd98f889a2638e55c30c84e (patch)
tree02c582529e6b3c6dccb2c468ea7aba875645837b /deployment/websites
parent0b2f23486980ceb3c8b7a1ca77bff7d06671e24c (diff)
downloadpuppet-a3a8c014620c8131bdd98f889a2638e55c30c84e.tar
puppet-a3a8c014620c8131bdd98f889a2638e55c30c84e.tar.gz
puppet-a3a8c014620c8131bdd98f889a2638e55c30c84e.tar.bz2
puppet-a3a8c014620c8131bdd98f889a2638e55c30c84e.tar.xz
puppet-a3a8c014620c8131bdd98f889a2638e55c30c84e.zip
add missing https check
Diffstat (limited to 'deployment/websites')
-rw-r--r--deployment/websites/templates/vhost_www.conf1
1 files changed, 1 insertions, 0 deletions
diff --git a/deployment/websites/templates/vhost_www.conf b/deployment/websites/templates/vhost_www.conf
index c7634759..79ac0ee1 100644
--- a/deployment/websites/templates/vhost_www.conf
+++ b/deployment/websites/templates/vhost_www.conf
@@ -9,4 +9,5 @@ ErrorDocument 404 /404.php
php_value short_open_tag false
# switch all to https
+RewriteCond %{HTTPS} !=on
RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]