From bf16c9dd36884ae478a783b14bc51b2fe26fcb08 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Tue, 22 Jul 2014 21:41:41 +0200 Subject: [PATCH] Make a common-dsa-vhost-https-redirect macro --- .../static-mirroring/static-vhost.conf.erb | 21 +++++++++++-------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/modules/roles/templates/static-mirroring/static-vhost.conf.erb b/modules/roles/templates/static-mirroring/static-vhost.conf.erb index 5e3fe41db..58cfb1d88 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 -- 2.20.1