diff options
author | Mattia Rizzolo <mattia@mapreri.org> | 2015-03-03 02:19:14 +0100 |
---|---|---|
committer | Mattia Rizzolo <mattia@mapreri.org> | 2015-03-03 02:21:35 +0100 |
commit | 8de56a9f5751d8199cd497031739560b298dd344 (patch) | |
tree | bdbecf54463ce788174b6fc77c5fc4bf4908c706 /etc/apache2 | |
parent | 0db9ace8b51469372958f8412d78bef38e3ee824 (diff) | |
download | jenkins.debian.net-8de56a9f5751d8199cd497031739560b298dd344.tar.xz |
apache: reproducible: fixup redirectes wrongly commited half-done. Now (/sid|/experimental) redirects to (/sid|/experimental)/index_suite_stats.html
Diffstat (limited to 'etc/apache2')
-rw-r--r-- | etc/apache2/sites-available/jenkins.debian.net | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/etc/apache2/sites-available/jenkins.debian.net b/etc/apache2/sites-available/jenkins.debian.net index a2799fbe..2944175c 100644 --- a/etc/apache2/sites-available/jenkins.debian.net +++ b/etc/apache2/sites-available/jenkins.debian.net @@ -205,11 +205,9 @@ Use common-debian-service-https-redirect reproducible.debian.net RewriteRule ^/?(.+) /sid/amd64/$1 [R=301,L] # redirect (/sid|/experimental) to (/sid|/experimental)/index_suite_stats.html + # note: the missing slash in the RewriteRule is wanted to avoid a double slash RewriteCond %{HTTP_HOST} reproducible\.debian\.net - RewriteCond %{REQUEST_FILENAME} !-d - RewriteCond %{REQUEST_URI} ^/$ - RewriteRule ^/(.*) /reproducible.html [R,L] - - + RewriteCond %{REQUEST_URI} ^/(sid|experimental)/$ + RewriteRule ^/(.*) /$1index_suite_stats.html [R,L] </VirtualHost> |