From 140e86b64590b93b769c2ae8b4355c3a6e55d728 Mon Sep 17 00:00:00 2001 From: Paul Wise Date: Sat, 19 Aug 2017 10:11:31 -0400 Subject: [PATCH] Also redirect URLs that are missing a trailing slash Prevents 404 errors when loading http://deb.debian.org/debian See-also: http://forums.debian.net/viewtopic.php?f=20&t=134288 See-also: <20170812033010.GA23525@elchanate.org> --- .../vhost/static-vhosts-simple.erb | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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 48403ef51..1f7990a72 100644 --- a/modules/roles/templates/static-mirroring/vhost/static-vhosts-simple.erb +++ b/modules/roles/templates/static-mirroring/vhost/static-vhosts-simple.erb @@ -8,10 +8,10 @@ ServerAlias cdn.debian.net ServerAlias http.debian.net - Redirect /debian/ http://cdn-fastly.deb.debian.org/debian/ - Redirect /debian-debug/ http://cdn-fastly.deb.debian.org/debian-debug/ - Redirect /debian-ports/ http://cdn-fastly.deb.debian.org/debian-ports/ - Redirect /debian-security/ http://cdn-fastly.deb.debian.org/debian-security/ + Redirect /debian http://cdn-fastly.deb.debian.org/debian + Redirect /debian-debug http://cdn-fastly.deb.debian.org/debian-debug + Redirect /debian-ports http://cdn-fastly.deb.debian.org/debian-ports + Redirect /debian-security http://cdn-fastly.deb.debian.org/debian-security > @@ -40,10 +40,10 @@ AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css - Redirect /debian/ https://cdn-aws.deb.debian.org/debian/ - Redirect /debian-debug/ https://cdn-aws.deb.debian.org/debian-debug/ - Redirect /debian-ports/ https://cdn-aws.deb.debian.org/debian-ports/ - Redirect /debian-security/ https://cdn-aws.deb.debian.org/debian-security/ + Redirect /debian https://cdn-aws.deb.debian.org/debian + Redirect /debian-debug https://cdn-aws.deb.debian.org/debian-debug + Redirect /debian-ports https://cdn-aws.deb.debian.org/debian-ports + Redirect /debian-security https://cdn-aws.deb.debian.org/debian-security <% end -%> -- 2.20.1