[Qa-jenkins-scm] [jenkins.debian.net] 01/01: fix reproducible-builds.org/{howto, spec} redirects

Holger Levsen holger at moszumanska.debian.org
Sat Aug 29 15:29:10 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 9005ffed5d8236d5102d1f2b9f4b401e66981b2e
Author: HW42 <hw42 at ipsumj.de>
Date:   Sat Aug 29 17:08:31 2015 +0200

    fix reproducible-builds.org/{howto,spec} redirects
    
    don't redirects /howto and /specs and anything below
    
    before for example the following links were wrongly redirected:
    https://reproducible-builds.org/howto (without /)
    https://reproducible-builds.org/specs (without /)
    https://reproducible-builds.org/specs/source-date-epoch-spec/
---
 hosts/jenkins/etc/apache2/sites-available/jenkins.debian.net | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/hosts/jenkins/etc/apache2/sites-available/jenkins.debian.net b/hosts/jenkins/etc/apache2/sites-available/jenkins.debian.net
index af07ca9..4042eac 100644
--- a/hosts/jenkins/etc/apache2/sites-available/jenkins.debian.net
+++ b/hosts/jenkins/etc/apache2/sites-available/jenkins.debian.net
@@ -299,8 +299,8 @@ Use common-debian-service-https-redirect reproducible-builds.org
 
 	# redirects reproducible-builds.org to https://reproducible.debian.net except for /specs/ and /howto/
 	RewriteCond %{HTTP_HOST} reproducible-builds\.org
-	RewriteCond %{REQUEST_URI} !^/specs/$
-	RewriteCond %{REQUEST_URI} !^/howto/$
+	RewriteCond %{REQUEST_URI} !^/specs($|/)
+	RewriteCond %{REQUEST_URI} !^/howto($|/)
 	RewriteRule ^/?(.*) https://reproducible.debian.net/$1 [R=301,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