summaryrefslogtreecommitdiffstats
path: root/hosts/jenkins/etc
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-09-09 14:04:25 +0200
committerHolger Levsen <holger@layer-acht.org>2015-09-09 14:04:25 +0200
commitc9c68ef3596d4b54ebe04f07992f49a5862007fc (patch)
tree95cd483952136ef352d0ee6e47e5ea7cb01f3552 /hosts/jenkins/etc
parentd449a892a044c3c4bef255841074464055cbabf0 (diff)
downloadjenkins.debian.net-c9c68ef3596d4b54ebe04f07992f49a5862007fc.tar.xz
reproducible: redirect '(/testing|unstable|/experimental)/(amd64|armhf)' and '(/(amd64|armhf)' properly
Diffstat (limited to 'hosts/jenkins/etc')
-rw-r--r--hosts/jenkins/etc/apache2/sites-available/jenkins.debian.net10
1 files changed, 10 insertions, 0 deletions
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