From 152869c90c5800964dacd1d577db1ea355819342 Mon Sep 17 00:00:00 2001 From: Mattia Rizzolo Date: Thu, 15 Jan 2015 18:08:00 +0100 Subject: apache: add rb.d.n/PACKAGE → rb.d.n/rb-pkg/PACKAGE.html redirect. Thanks Lunar for the initial patch! MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- etc/apache2/sites-available/jenkins.debian.net | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'etc/apache2') diff --git a/etc/apache2/sites-available/jenkins.debian.net b/etc/apache2/sites-available/jenkins.debian.net index 170e63d5..60944dc5 100644 --- a/etc/apache2/sites-available/jenkins.debian.net +++ b/etc/apache2/sites-available/jenkins.debian.net @@ -133,4 +133,10 @@ Use common-debian-service-https-redirect reproducible.debian.net RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} ^/userContent RewriteRule ^/userContent/(.*)$ /$1 [R=301,L] + + RewriteCond %{HTTP_HOST} reproducible\.debian\.net + RewriteCond %{REQUEST_FILENAME} !-f + RewriteCond %{REQUEST_FILENAME} !-d + RewriteCond /var/lib/jenkins/userContent/rb-pkg/$1.html -f + RewriteRule ^/([a-z0-9.+-]+) /rb-pkg/$1.html [R=302,L] -- cgit v1.2.3-70-g09d2