From ada478a49459e46485f3e9a3fe1253b875d99088 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Thu, 13 Oct 2016 09:06:39 +0200 Subject: [PATCH] remove double slashes on metadata.ftp-master.debian.org --- .../static-mirroring/vhost/static-vhosts-simple.erb | 6 ++++++ 1 file changed, 6 insertions(+) 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 198ea2a6d..0acb605a5 100644 --- a/modules/roles/templates/static-mirroring/vhost/static-vhosts-simple.erb +++ b/modules/roles/templates/static-mirroring/vhost/static-vhosts-simple.erb @@ -23,6 +23,12 @@ AddDefaultCharset utf-8 + + # Rewrite away double slashes + RewriteEngine on + RewriteCond %{REQUEST_URI} ^(.*)//(.*)$ [NC] + RewriteRule . %1/%2 [R=301,L,NE] + ForceType text/plain -- 2.20.1