X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Froles%2Ftemplates%2Fstatic-mirroring%2Fvhost%2Fstatic-vhosts-simple.erb;h=8821896d66952ff364dfae3a4770edb25e250d64;hb=60afaa8904cb819ceec6b1739d2f220d052feec3;hp=0722bb17195b2e21c6f41aef9a34070500061e74;hpb=c981332dd8e7d9b03a77716e12124f2c4c53fdce;p=mirror%2Fdsa-puppet.git 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 0722bb171..8821896d6 100644 --- a/modules/roles/templates/static-mirroring/vhost/static-vhosts-simple.erb +++ b/modules/roles/templates/static-mirroring/vhost/static-vhosts-simple.erb @@ -6,6 +6,7 @@ Redirect /debian/ http://cdn-fastly.deb.debian.org/debian/ Redirect /debian-debug/ http://cdn-fastly.deb.debian.org/debian-debug/ + Redirect /debian-ports/ http://cdn-fastly.deb.debian.org/debian-ports/ Redirect /debian-security/ http://cdn-fastly.deb.debian.org/debian-security/ <% end -%> @@ -130,7 +131,10 @@ lines.join("\n") ###################### # www.ports.debian.org <% if scope.function_has_static_component(['www.ports.debian.org']) -%> - > + +Use common-dsa-vhost-https-redirect www.ports.debian.org + + > ServerName www.ports.debian.org ServerAlias www.ports-backend.debian.org ServerAdmin debian-admin@lists.debian.org @@ -138,6 +142,9 @@ lines.join("\n") ErrorLog /var/log/apache2/www.ports.debian.org-error.log CustomLog /var/log/apache2/www.ports.debian.org-access.log privacy + Use common-debian-service-ssl www.ports.debian.org + Use common-ssl-HSTS + UserDir disabled @@ -148,12 +155,7 @@ lines.join("\n") AllowOverride FileInfo Indexes Options=Multiviews Options Multiviews Indexes FollowSymLinks Includes IndexOptions FancyIndexing NameWidth=* - <% if @lsbmajdistrelease > '7' -%> - Require all granted - <% else -%> - Order allow,deny - Allow from all - <% end -%> + Require all granted AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css @@ -165,14 +167,29 @@ lines.join("\n") ServerName www.debian-ports.org ServerAlias debian-ports.org ServerAdmin debian-admin@debian.org - RedirectPermanent / http://www.ports.debian.org/ + RedirectPermanent / https://www.ports.debian.org/ > ServerName ports.debian.org ServerAlias ports.debian.net ServerAdmin debian-admin@debian.org - RedirectPermanent / http://www.ports.debian.org/ + RedirectPermanent / https://www.ports.debian.org/ + + + > + ServerName incoming.debian-ports.org + ServerAdmin debian-admin@debian.org + RedirectPermanent / http://incoming.ports.debian.org/ + + + > + ServerName ftp.debian-ports.org + ServerAdmin debian-admin@debian.org + RedirectPermanent /archive http://www.ports.debian.org + RedirectPermanent /debian http://ftp.ports.debian.org/debian-ports + RedirectPermanent /debian-cd http://ftp.ports.debian.org/debian-ports-cd + RedirectPermanent / http://ftp.ports.debian.org/ # video.debian.net