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=b1f236195b151cc975e54767b83e5fa8c54dd0f4;hp=fef7303d9931ded08a3e7ae2528c95919ebfd0b2;hpb=025fa478e25f10189ca63e5c94791d2263f114eb;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 fef7303d9..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 -%> @@ -27,8 +28,9 @@ end lines = [] vhost(lines, "mozilla.debian.net") -vhost(lines, "backports.debian.org") +vhost(lines, "backports.debian.org", "ssl") vhost(lines, "incoming.debian.org") +vhost(lines, "incoming.ports.debian.org") vhost(lines, "debdeltas.debian.net") vhost(lines, "news.debian.net" , "ssl") vhost(lines, "debaday.debian.net" , "ssl") @@ -129,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 @@ -137,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 @@ -147,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 @@ -164,17 +167,29 @@ lines.join("\n") ServerName www.debian-ports.org ServerAlias debian-ports.org ServerAdmin debian-admin@debian.org - RedirectPermanent /archive/ http://archive.ports.debian.org/archive/ - RedirectPermanent /debian-cd/ http://archive.ports.debian.org/debian-cd/ - RedirectPermanent /debian-snapshot/ http://archive.ports.debian.org/debian-snapshot/ - RedirectPermanent /debian/ http://archive.ports.debian.org/debian/ - 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 / https://www.ports.debian.org/ + + + > + ServerName incoming.debian-ports.org + ServerAdmin debian-admin@debian.org + RedirectPermanent / http://incoming.ports.debian.org/ > - ServerName ports.debian.net + ServerName ftp.debian-ports.org ServerAdmin debian-admin@debian.org - RedirectPermanent / http://www.ports.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