remove double slashes on metadata.ftp-master.debian.org
authorPeter Palfrader <peter@palfrader.org>
Thu, 13 Oct 2016 06:56:39 +0000 (08:56 +0200)
committerPeter Palfrader <peter@palfrader.org>
Thu, 13 Oct 2016 06:56:39 +0000 (08:56 +0200)
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