[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reproducible: redirect '(/testing|unstable|/experimental)/(amd64|armhf)' and '(/(amd64|armhf)' properly

Holger Levsen holger at moszumanska.debian.org
Wed Sep 9 12:05:01 UTC 2015


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch master
in repository jenkins.debian.net.

commit c9c68ef3596d4b54ebe04f07992f49a5862007fc
Author: Holger Levsen <holger at layer-acht.org>
Date:   Wed Sep 9 14:04:25 2015 +0200

    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(+)

diff --git a/hosts/jenkins/etc/apache2/sites-available/jenkins.debian.net b/hosts/jenkins/etc/apache2/sites-available/jenkins.debian.net
index 4042eac..290c224 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

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git



More information about the Qa-jenkins-scm mailing list