From: Julien Cristau Date: Mon, 4 Jul 2016 12:42:36 +0000 (+0200) Subject: Move and conditionalize release.d.o vhost X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=f2b38e8aba64eea463246187ee44ec71bb0d204d;p=mirror%2Fdsa-puppet.git Move and conditionalize release.d.o vhost --- diff --git a/modules/roles/templates/static-mirroring/vhost/static-vhosts-simple.erb b/modules/roles/templates/static-mirroring/vhost/static-vhosts-simple.erb index 3d1bc8413..d01dc6367 100644 --- a/modules/roles/templates/static-mirroring/vhost/static-vhosts-simple.erb +++ b/modules/roles/templates/static-mirroring/vhost/static-vhosts-simple.erb @@ -116,6 +116,24 @@ lines.join("\n") <% end -%> +###################### +# release.debian.org +<% if scope.function_has_static_component(['release.debian.org']) -%> +Use common-dsa-vhost-https-redirect release.debian.org + > + ServerName release.debian.org + ServerAdmin debian-admin@debian.org + + ErrorLog /var/log/apache2/release.debian.org-error.log + CustomLog /var/log/apache2/release.debian.org-access.log privacy + + Use common-debian-service-ssl release.debian.org + Use common-ssl-HSTS + + Use common-static-base release.debian.org + +<% end -%> + # www.backports.org ################### # www.backports.org is the historical place for the backports @@ -234,33 +252,4 @@ Use common-dsa-vhost-https-redirect www.ports.debian.org RedirectPermanent / http://metadata.ftp-master.debian.org/ - > - ServerName release.debian.org - ServerAdmin debian-admin@debian.org - RedirectPermanent / https://release.debian.org/ - - > - ServerName release.debian.org - ServerAdmin debian-admin@debian.org - - ErrorLog /var/log/apache2/release.debian.org-error.log - CustomLog /var/log/apache2/release.debian.org-access.log privacy - - Use common-debian-service-ssl release.debian.org - Use common-ssl-HSTS - - - UserDir disabled - - ServerSignature On - - DocumentRoot /srv/static.debian.org/mirrors/release.debian.org/cur - - AllowOverride FileInfo Indexes Options=Multiviews - Options Multiviews Indexes FollowSymLinks Includes - IndexOptions FancyIndexing NameWidth=* - Require all granted - - - # vim:ft=apache: