Hi,

see attached patch. Haven't tested it but should work (or trivial to fix) ;]

HW42
From aed8f26e316f69b6316f5fa664cf8f0cd875c0dc Mon Sep 17 00:00:00 2001
From: HW42 <h...@ipsumj.de>
Date: Sat, 29 Aug 2015 17:08:31 +0200
Subject: [PATCH] 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 *>
-- 
2.5.0

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Reproducible-builds mailing list
Reproducible-builds@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reproducible-builds

Reply via email to