From c9c68ef3596d4b54ebe04f07992f49a5862007fc Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Wed, 9 Sep 2015 14:04:25 +0200 Subject: reproducible: redirect '(/testing|unstable|/experimental)/(amd64|armhf)' and '(/(amd64|armhf)' properly --- hosts/jenkins/etc/apache2/sites-available/jenkins.debian.net | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'hosts/jenkins/etc') diff --git a/hosts/jenkins/etc/apache2/sites-available/jenkins.debian.net b/hosts/jenkins/etc/apache2/sites-available/jenkins.debian.net index 4042eac7..290c224f 100644 --- a/hosts/jenkins/etc/apache2/sites-available/jenkins.debian.net +++ b/hosts/jenkins/etc/apache2/sites-available/jenkins.debian.net @@ -257,6 +257,16 @@ Use common-debian-service-https-redirect reproducible-builds.org RewriteCond %{REQUEST_URI} ^/(testing|unstable|experimental)/$ RewriteRule ^/(.*) /$1index_suite_amd64_stats.html [R,L] + # redirect (/testing|unstable|/experimental)/(amd64|armhf) to (/testing|/unstable|/experimental)/index_suite_(amd64|armhf)_stats.html + RewriteCond %{HTTP_HOST} reproducible\.debian\.net + RewriteCond %{REQUEST_URI} ^/(testing|unstable|experimental)/(amd64|armhf)/$ + RewriteRule ^/([a-z0-9]+)/([a-z0-9]+) /$1/index_suite_$2_stats.html [R,L] + + # redirect (/(amd64|armhf) to (/testing|/unstable|/experimental)/index_suite_(amd64|armhf)_stats.html + RewriteCond %{HTTP_HOST} reproducible\.debian\.net + RewriteCond %{REQUEST_URI} ^/(amd64|armhf)(/|)$ + RewriteRule ^/([a-z0-9]+) /unstable/index_suite_$1_stats.html [R,L] + # redirect /coreboot/ to coreboot/coreboot.html # note: the missing slash in the RewriteRule is wanted to avoid a double slash RewriteCond %{HTTP_HOST} reproducible\.debian\.net -- cgit v1.2.3-70-g09d2