remove double slashes on metadata.ftp-master.debian.org
authorPeter Palfrader <peter@palfrader.org>
Thu, 13 Oct 2016 07:06:39 +0000 (09:06 +0200)
committerPeter Palfrader <peter@palfrader.org>
Thu, 13 Oct 2016 07:06:39 +0000 (09:06 +0200)
modules/roles/templates/static-mirroring/vhost/static-vhosts-simple.erb

index 198ea2a..0acb605 100644 (file)
 
 <Macro vstatic-vhost-extra-metadata.ftp-master.debian.org>
        AddDefaultCharset utf-8
+
+       # Rewrite away double slashes
+       RewriteEngine on
+       RewriteCond %{REQUEST_URI} ^(.*)//(.*)$ [NC]
+       RewriteRule . %1/%2 [R=301,L,NE]
+
        <LocationMatch "/changelogs/(main|contrib|non-free)">
                ForceType text/plain
        </LocationMatch>