aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Backlund <tmb@mageia.org>2020-05-13 19:47:50 +0300
committerThomas Backlund <tmb@mageia.org>2020-05-13 19:47:50 +0300
commit16077afc71a72b6444f42d9a927f1cff8fbe52fb (patch)
tree190de226a09a312ce645cc5f67b4d421ef668541
parent96dc77b3fd466726e09d8a78ae49130eb8e3cfbc (diff)
downloadpuppet-16077afc71a72b6444f42d9a927f1cff8fbe52fb.tar
puppet-16077afc71a72b6444f42d9a927f1cff8fbe52fb.tar.gz
puppet-16077afc71a72b6444f42d9a927f1cff8fbe52fb.tar.bz2
puppet-16077afc71a72b6444f42d9a927f1cff8fbe52fb.tar.xz
puppet-16077afc71a72b6444f42d9a927f1cff8fbe52fb.zip
redirect www to https (mga#26616)
-rw-r--r--deployment/websites/manifests/www.pp4
1 files changed, 4 insertions, 0 deletions
diff --git a/deployment/websites/manifests/www.pp b/deployment/websites/manifests/www.pp
index c0c556ea..07ee4ec4 100644
--- a/deployment/websites/manifests/www.pp
+++ b/deployment/websites/manifests/www.pp
@@ -50,6 +50,10 @@ class websites::www {
options => ['FollowSymLinks'],
}
+ apache::vhost_redirect { "${vhost}":
+ url => "https://www.${::domain}/",
+ }
+
apache::vhost_redirect { "${::domain}":
url => "https://www.${::domain}/",
}