remove double slashes on metadata.ftp-master.debian.org
[mirror/dsa-puppet.git] / modules / roles / templates / static-mirroring / vhost / static-vhosts-simple.erb
index 198ea2a..738ad3a 100644 (file)
 </Macro>
 
 <Macro vstatic-vhost-extra-metadata.ftp-master.debian.org>
+       # Rewrite away double slashes
+       RewriteEngine on
+       RewriteCond %{THE_REQUEST} //
+       RewriteRule ^.*$ $0 [R=302,L,NE]
+
        AddDefaultCharset utf-8
        <LocationMatch "/changelogs/(main|contrib|non-free)">
                ForceType text/plain