summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattia Rizzolo <mattia@mapreri.org>2015-01-15 18:08:00 +0100
committerHolger Levsen <holger@layer-acht.org>2015-01-16 13:06:05 +0100
commit152869c90c5800964dacd1d577db1ea355819342 (patch)
treedc5cd6828c10745f75d8c377e79c7d782af12746
parent18a3f48ae4c37ac6eedb40c2801adef19a8b816d (diff)
downloadjenkins.debian.net-152869c90c5800964dacd1d577db1ea355819342.tar.xz
apache: add rb.d.n/PACKAGE → rb.d.n/rb-pkg/PACKAGE.html redirect. Thanks Lunar for the initial patch!
-rw-r--r--etc/apache2/sites-available/jenkins.debian.net6
1 files changed, 6 insertions, 0 deletions
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]
</VirtualHost>