diff options
author | Mattia Rizzolo <mattia@mapreri.org> | 2015-03-01 14:19:56 +0100 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-03-01 14:37:30 +0100 |
commit | 7745f6e9b21b118cbe8be06dc03704860df37c36 (patch) | |
tree | 37e78ecb8b8e16d6947f01074c638081048060e1 /etc/apache2 | |
parent | edffe2c02a48b39317227bba569b7ddaf34dff72 (diff) | |
download | jenkins.debian.net-7745f6e9b21b118cbe8be06dc03704860df37c36.tar.xz |
apache: add more redirectes for reproducible.debian.net
Diffstat (limited to 'etc/apache2')
-rw-r--r-- | etc/apache2/sites-available/jenkins.debian.net | 30 |
1 files changed, 28 insertions, 2 deletions
diff --git a/etc/apache2/sites-available/jenkins.debian.net b/etc/apache2/sites-available/jenkins.debian.net index c6009777..63ba0276 100644 --- a/etc/apache2/sites-available/jenkins.debian.net +++ b/etc/apache2/sites-available/jenkins.debian.net @@ -162,6 +162,32 @@ Use common-debian-service-https-redirect reproducible.debian.net 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] + RewriteCond /var/lib/jenkins/userContent/rb-pkg/sid/amd64/$1.html -f + RewriteRule ^/([a-z0-9.+-]+) /rb-pkg/sid/amd64/$1.html [R=302,L] + + # redirect rb.d.n/rb-pkg/$PKG.html → rb.d.n/rb-pkg/$suite/$arch/$PKG.html + RewriteCond %{HTTP_HOST} reproducible\.debian\.net + RewriteCond %{REQUEST_FILENAME} !-f + RewriteCond %{REQUEST_FILENAME} !-d + RewriteCond /var/lib/jenkins/userContent/rb-pkg/sid/amd64/$1 -f + RewriteRule ^/rb-pkg/([a-z0-9.+-]+) /rb-pkg/sid/am64/$1 [R=302,L] + # the same for /dbd/ + RewriteCond %{HTTP_HOST} reproducible\.debian\.net + RewriteCond %{REQUEST_FILENAME} !-f + RewriteCond %{REQUEST_FILENAME} !-d + RewriteCond /var/lib/jenkins/userContent/dbd/sid/amd64/$1 -f + RewriteRule ^/dbd/([a-z0-9.+-]+) /dbd/sid/am64/$1 [R=302,L] + # the same for /rbuild/ + RewriteCond %{HTTP_HOST} reproducible\.debian\.net + RewriteCond %{REQUEST_FILENAME} !-f + RewriteCond %{REQUEST_FILENAME} !-d + RewriteCond /var/lib/jenkins/userContent/rbuild/sid/amd64/$1 -f + RewriteRule ^/rbuild/([a-z0-9.+-]+) /rbuild/sid/am64/$1 [R=302,L] + # the same for /buildinfo/ + RewriteCond %{HTTP_HOST} reproducible\.debian\.net + RewriteCond %{REQUEST_FILENAME} !-f + RewriteCond %{REQUEST_FILENAME} !-d + RewriteCond /var/lib/jenkins/userContent/buildinfo/sid/amd64/$1 -f + RewriteRule ^/buildinfo/([a-z0-9.+-]+) /buildinfo/sid/am64/$1 [R=302,L] + </VirtualHost> |