From f2b38e8aba64eea463246187ee44ec71bb0d204d Mon Sep 17 00:00:00 2001 From: Julien Cristau Date: Mon, 4 Jul 2016 14:42:36 +0200 Subject: [PATCH] Move and conditionalize release.d.o vhost --- .../vhost/static-vhosts-simple.erb | 47 +++++++------------ 1 file changed, 18 insertions(+), 29 deletions(-) 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: -- 2.20.1