diff options
author | Holger Levsen <holger@layer-acht.org> | 2015-03-17 22:46:05 +0100 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-03-17 22:46:05 +0100 |
commit | f648319549a56a7b664c309ad9aa91fde7f6f929 (patch) | |
tree | 269b131f8e60867d89fdd69f3601c0a764cd54dc /etc/apache2/sites-available | |
parent | 2a5494fecfd9b758501325d0e7df0361f24494a2 (diff) | |
download | jenkins.debian.net-f648319549a56a7b664c309ad9aa91fde7f6f929.tar.xz |
reproducible: add new redirect: rb.d.n/$suite/amd64/$PKG → rb.d.n/$suite/amd64/rb-pkg/$PKG.html
Diffstat (limited to 'etc/apache2/sites-available')
-rw-r--r-- | etc/apache2/sites-available/jenkins.debian.net | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/etc/apache2/sites-available/jenkins.debian.net b/etc/apache2/sites-available/jenkins.debian.net index db8f47f2..5fa00a79 100644 --- a/etc/apache2/sites-available/jenkins.debian.net +++ b/etc/apache2/sites-available/jenkins.debian.net @@ -158,13 +158,20 @@ Use common-debian-service-https-redirect reproducible.debian.net RewriteCond %{REQUEST_URI} ^/userContent RewriteRule ^/userContent/(.*)$ /$1 [R=301,L] - # redirect rb.d.n/$PKG → rb.d.n/rb-pkg/$PKG.html + # redirect rb.d.n/$PKG → rb.d.n/rb-pkg/unstable/amd64/$PKG.html RewriteCond %{HTTP_HOST} reproducible\.debian\.net RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond /var/lib/jenkins/userContent/rb-pkg/unstable/amd64/$1.html -f RewriteRule ^/([a-z0-9.+-]+) /rb-pkg/unstable/amd64/$1.html [R=302,L] + # redirect rb.d.n/$suite/amd64/$PKG → rb.d.n/$suite/amd64/rb-pkg/$PKG.html + RewriteCond %{HTTP_HOST} reproducible\.debian\.net + RewriteCond %{REQUEST_FILENAME} !-f + RewriteCond %{REQUEST_FILENAME} !-d + RewriteCond /var/lib/jenkins/userContent/rb-pkg/$1/amd64/$2.html -f + RewriteRule ^/(unstable|testing|experimental)/amd64/([a-z0-9.+-]+) /rb-pkg/$1/amd64/$2.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 |