From 91ed877939c02c7bfbf3480868a480754df8ef46 Mon Sep 17 00:00:00 2001 From: Mattia Rizzolo Date: Thu, 13 Jul 2017 23:30:17 +0200 Subject: apache: fixup redirects for t.r-b.o/debian/(testing|buster) Signed-off-by: Mattia Rizzolo --- hosts/jenkins/etc/apache2/sites-available/jenkins.debian.net.conf | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'hosts') diff --git a/hosts/jenkins/etc/apache2/sites-available/jenkins.debian.net.conf b/hosts/jenkins/etc/apache2/sites-available/jenkins.debian.net.conf index 5f6c4f83..4a9684b5 100644 --- a/hosts/jenkins/etc/apache2/sites-available/jenkins.debian.net.conf +++ b/hosts/jenkins/etc/apache2/sites-available/jenkins.debian.net.conf @@ -271,16 +271,16 @@ Use common-debian-service-https-redirect www.reproducible-builds.org # redirect /testing to /buster # note: no flags on the rule, will cause apache to continue after rewriting # the url and apply the next rule - Rewritecond %{REQUEST_URI} ^/(debian/|)testing(/|)$ - RewriteRule ^/(debian/|)(.*) /debian/buster/ + Rewritecond %{REQUEST_URI} ^/debian/testing + RewriteRule ^/debian/testing/(.*) /debian/buster/$1 # redirect /$suite to /$suite/index_suite_amd64_stats.html # note: the missing slash in the RewriteRule is wanted to avoid a double slash - RewriteCond %{REQUEST_URI} ^/(debian/|)(stretch|unstable|experimental)(/|)$ + RewriteCond %{REQUEST_URI} ^/(debian/|)(stretch|buster|unstable|experimental)(/|)$ RewriteRule ^/(debian/|)(.*) /debian/$2/index_suite_amd64_stats.html [R,L] # redirect /$suite/$arch to $suite/index_suite_$arch_stats.html - RewriteCond %{REQUEST_URI} ^/(debian/|)(stretch|testing|unstable|experimental)/(amd64|arm64|armhf|i386)(/|)$ + RewriteCond %{REQUEST_URI} ^/(debian/|)(stretch|buster|unstable|experimental)/(amd64|arm64|armhf|i386)(/|)$ RewriteRule ^/(debian/|)([a-z0-9]+)/([a-z0-9]+) /debian/$2/index_suite_$3_stats.html [R,L] # redirect /$arch to /unstable/index_suite_$arch_stats.html -- cgit v1.2.3-54-g00ecf