[Qa-jenkins-scm] [jenkins.debian.net] 02/03: reproducible: rewrite both /$project as well as /$project/ URLs

Holger Levsen holger at moszumanska.debian.org
Wed Jan 20 14:23:12 UTC 2016


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 b5f5cf1b4b4d9633e0cd95256173a89bcc51753b
Author: Holger Levsen <holger at layer-acht.org>
Date:   Wed Jan 20 15:18:47 2016 +0100

    reproducible: rewrite both /$project as well as /$project/ URLs
---
 .../sites-available/jenkins.debian.net.conf        | 36 +++++++++++-----------
 1 file changed, 18 insertions(+), 18 deletions(-)

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 c98b4f4..4f4ba69 100644
--- a/hosts/jenkins/etc/apache2/sites-available/jenkins.debian.net.conf
+++ b/hosts/jenkins/etc/apache2/sites-available/jenkins.debian.net.conf
@@ -277,12 +277,12 @@ Use common-debian-service-https-redirect reproducible-builds.org
 	# redirect (/testing|unstable|/experimental) to (/testing|/unstable|/experimental)/index_suite_amd64_stats.html
 	# note: the missing slash in the RewriteRule is wanted to avoid a double slash
 	RewriteCond %{HTTP_HOST} reproducible\.debian\.net
-	RewriteCond %{REQUEST_URI} ^/(testing|unstable|experimental)/$
+	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)/$
+	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
@@ -293,35 +293,35 @@ Use common-debian-service-https-redirect reproducible-builds.org
 	# 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
-	RewriteCond %{REQUEST_URI} ^/coreboot/$
+	RewriteCond %{REQUEST_URI} ^/coreboot(/|)$
 	RewriteRule ^/(.*) /coreboot/coreboot.html [R,L]
 
 	# redirect /openwrt/ to openwrt/openwrt.html
 	# note: the missing slash in the RewriteRule is wanted to avoid a double slash
 	RewriteCond %{HTTP_HOST} reproducible\.debian\.net
-	RewriteCond %{REQUEST_URI} ^/openwrt/$
+	RewriteCond %{REQUEST_URI} ^/openwrt(/|)$
 	RewriteRule ^/(.*) /openwrt/openwrt.html [R,L]
 
 	# redirect /netbsd/ to netbsd/netbsd.html
 	# note: the missing slash in the RewriteRule is wanted to avoid a double slash
 	RewriteCond %{HTTP_HOST} reproducible\.debian\.net
-	RewriteCond %{REQUEST_URI} ^/netbsd/$
+	RewriteCond %{REQUEST_URI} ^/netbsd(/|)$
 	RewriteRule ^/(.*) /netbsd/netbsd.html [R,L]
 
 	# redirect /freebsd/ to freebsd/freebsd.html
 	# note: the missing slash in the RewriteRule is wanted to avoid a double slash
 	RewriteCond %{HTTP_HOST} reproducible\.debian\.net
-	RewriteCond %{REQUEST_URI} ^/freebsd/$
+	RewriteCond %{REQUEST_URI} ^/freebsd(/|)$
 	RewriteRule ^/(.*) /freebsd/freebsd.html [R,L]
 
 	# redirect /archlinux/ to archlinux/archlinux.html
 	# note: the missing slash in the RewriteRule is wanted to avoid a double slash
 	RewriteCond %{HTTP_HOST} reproducible\.debian\.net
-	RewriteCond %{REQUEST_URI} ^/archlinux/$
+	RewriteCond %{REQUEST_URI} ^/archlinux(/|)$
 	RewriteRule ^/(.*) /archlinux/archlinux.html [R,L]
 
 	# redirect /issues/ to /index_issues.html
-	RewriteCond %{REQUEST_URI} ^/issues/$
+	RewriteCond %{REQUEST_URI} ^/issues(/|)$
 	RewriteRule ^/(.*) /index_issues.html [R,L]
 
 	<Proxy *>
@@ -443,12 +443,12 @@ Use common-debian-service-https-redirect reproducible-builds.org
 	# redirect (/testing|unstable|/experimental) to (/testing|/unstable|/experimental)/index_suite_amd64_stats.html
 	# note: the missing slash in the RewriteRule is wanted to avoid a double slash
 	RewriteCond %{HTTP_HOST} tests\.reproducible-builds\.org
-	RewriteCond %{REQUEST_URI} ^/(testing|unstable|experimental)/$
+	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} tests\.reproducible-builds\.org
-	RewriteCond %{REQUEST_URI} ^/(testing|unstable|experimental)/(amd64|armhf)/$
+	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
@@ -459,45 +459,45 @@ Use common-debian-service-https-redirect reproducible-builds.org
 	# redirect /coreboot/ to coreboot/coreboot.html
 	# note: the missing slash in the RewriteRule is wanted to avoid a double slash
 	RewriteCond %{HTTP_HOST} tests\.reproducible-builds\.org
-	RewriteCond %{REQUEST_URI} ^/coreboot/$
+	RewriteCond %{REQUEST_URI} ^/coreboot(/|)$
 	RewriteRule ^/(.*) /coreboot/coreboot.html [R,L]
 
 	# redirect /openwrt/ to openwrt/openwrt.html
 	# note: the missing slash in the RewriteRule is wanted to avoid a double slash
 	RewriteCond %{HTTP_HOST} tests\.reproducible-builds\.org
-	RewriteCond %{REQUEST_URI} ^/openwrt/$
+	RewriteCond %{REQUEST_URI} ^/openwrt(/|)$
 	RewriteRule ^/(.*) /openwrt/openwrt.html [R,L]
 
 	# redirect /netbsd/ to netbsd/netbsd.html
 	# note: the missing slash in the RewriteRule is wanted to avoid a double slash
 	RewriteCond %{HTTP_HOST} tests\.reproducible-builds\.org
-	RewriteCond %{REQUEST_URI} ^/netbsd/$
+	RewriteCond %{REQUEST_URI} ^/netbsd(/|)$
 	RewriteRule ^/(.*) /netbsd/netbsd.html [R,L]
 
 	# redirect /freebsd/ to freebsd/freebsd.html
 	# note: the missing slash in the RewriteRule is wanted to avoid a double slash
 	RewriteCond %{HTTP_HOST} tests\.reproducible-builds\.org
-	RewriteCond %{REQUEST_URI} ^/freebsd/$
+	RewriteCond %{REQUEST_URI} ^/freebsd(/|)$
 	RewriteRule ^/(.*) /freebsd/freebsd.html [R,L]
 
 	# redirect /archlinux/ to archlinux/archlinux.html
 	# note: the missing slash in the RewriteRule is wanted to avoid a double slash
 	RewriteCond %{HTTP_HOST} tests\.reproducible-builds\.org
-	RewriteCond %{REQUEST_URI} ^/archlinux/$
+	RewriteCond %{REQUEST_URI} ^/archlinux(/|)$
 	RewriteRule ^/(.*) /archlinux/archlinux.html [R,L]
 
 	# redirect /issues/ to /index_issues.html
 	RewriteCond %{HTTP_HOST} tests\.reproducible-builds\.org
-	RewriteCond %{REQUEST_URI} ^/issues/$
+	RewriteCond %{REQUEST_URI} ^/issues(/|)$
 	RewriteRule ^/(.*) /index_issues.html [R,L]
 
 	# temporary redirects until the html is rewritten
 	RewriteCond %{HTTP_HOST} tests\.reproducible-builds\.org
-	RewriteCond %{REQUEST_URI} ^/debian/$
+	RewriteCond %{REQUEST_URI} ^/debian(/|)$
 	RewriteRule ^/?(.*) /reproducible.html [R,L]
 	# and another:
 	RewriteCond %{HTTP_HOST} tests\.reproducible-builds\.org
-	RewriteCond %{REQUEST_URI} ^/fedora/$
+	RewriteCond %{REQUEST_URI} ^/fedora(/|)$
 	RewriteRule ^/?(.*) /rpms/fedora-23.html [R,L]
 
 	<Proxy *>

-- 
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