From: Peter Palfrader Date: Tue, 22 Jul 2014 19:25:58 +0000 (+0200) Subject: bits.d.o: redirect everything but /feeds to https X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=2b56671e43a6347bfad180955c5bb14aa5c03d0d;p=dsa-puppet.git bits.d.o: redirect everything but /feeds to https --- 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 79531d28..2e0ed8c1 100644 --- a/modules/roles/templates/static-mirroring/vhost/static-vhosts-simple.erb +++ b/modules/roles/templates/static-mirroring/vhost/static-vhosts-simple.erb @@ -28,6 +28,13 @@ Use common-static-vhost-with-extra security-team.debian.org "ServerAlias securit > + RewriteEngine on + + RewriteEngine On + RewriteCond %{REQUEST_URI} !^/feeds/ + RewriteRule ^/(.*)$ https://bits.debian.org/$1 [R,L] + #RewriteRule ^/(.*)$ https://bits.debian.org/$1 [NC,R=301,L] + Use static-bits.debian.org-base CustomLog /var/log/apache2/bits.debian.org-access.log privacy