From: Peter Palfrader Date: Tue, 22 Jul 2014 19:41:41 +0000 (+0200) Subject: Make a common-dsa-vhost-https-redirect macro X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=bf16c9dd36884ae478a783b14bc51b2fe26fcb08;hp=81e8b5f7499e90bb8cb59f09518ed7cae95660aa;p=dsa-puppet.git Make a common-dsa-vhost-https-redirect macro --- diff --git a/modules/roles/templates/static-mirroring/static-vhost.conf.erb b/modules/roles/templates/static-mirroring/static-vhost.conf.erb index 5e3fe41d..58cfb1d8 100644 --- a/modules/roles/templates/static-mirroring/static-vhost.conf.erb +++ b/modules/roles/templates/static-mirroring/static-vhost.conf.erb @@ -1,4 +1,15 @@ # puppet maintained + + > + ServerName $name + ServerAdmin debian-admin@lists.debian.org + + CustomLog /var/log/apache2/$name-access.log privacy + ErrorLog /var/log/apache2/$name-error.log + + Redirect permanent / https://$name/ + + @@ -38,15 +49,7 @@ - > - ServerName $name - ServerAdmin debian-admin@lists.debian.org - - CustomLog /var/log/apache2/$name-access.log privacy - ErrorLog /var/log/apache2/$name-error.log - - Redirect permanent / https://$name/ - + Use common-dsa-vhost-https-redirect $name > ServerName $name