X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Froles%2Ftemplates%2Fsyncproxy%2Fsyncproxy.debian.org-apache.erb;h=de01c02a5b2a03764bf0f87176a286915e536763;hb=f97bd2a2a0cccb68e4de5e8cca2ebaebab0ab153;hp=7da6cb55b08eafa61cd945bdef685657fee5ed36;hpb=b9786e7c10ade7954d5736ffd9ff9bf20063ba15;p=mirror%2Fdsa-puppet.git diff --git a/modules/roles/templates/syncproxy/syncproxy.debian.org-apache.erb b/modules/roles/templates/syncproxy/syncproxy.debian.org-apache.erb index 7da6cb55b..de01c02a5 100644 --- a/modules/roles/templates/syncproxy/syncproxy.debian.org-apache.erb +++ b/modules/roles/templates/syncproxy/syncproxy.debian.org-apache.erb @@ -4,12 +4,19 @@ ## <% - vhost_listen = [ (bind != '') ? "#{bind}:80" : "*:80", (bind6 != '') ? "#{bind6}:80" : "*:80"].uniq.join(' ') - vhost_listen_443 = [ (bind != '') ? "#{bind}:443" : "*:443", (bind6 != '') ? "[#{bind6}]:443" : "*:443"].uniq.join(' ') + vhost_listen = [ (bind != '') ? "#{bind}" : "*", (bind6 != '') ? "#{bind6}" : "*"].uniq + vhost_listen_443 = [ (bind != '') ? "#{bind}:443" : "*:443", (bind6 != '') ? "[#{bind6}]:443" : "*:443"].uniq %> -Use common-debian-service-https-redirect "<%= vhost_listen %>" <%= syncproxy_name %> - > +<%= +lines = [] +vhost_listen.each do |bind| + lines << "Use common-debian-service-https-redirect \"#{bind}\" \"#{syncproxy_name}\"" +end +lines.join("\n") + +%> + > ServerName <%= syncproxy_name %> DocumentRoot /srv/www/syncproxy.debian.org/htdocs