Commit b2a24dbe authored by Holger Levsen's avatar Holger Levsen

reproducible Debian: add apache2 redirects for bullseye

Signed-off-by: Holger Levsen's avatarHolger Levsen <holger@layer-acht.org>
parent 55d0c8c1
...@@ -91,19 +91,19 @@ RewriteCond %{REQUEST_URI} ^/(debian/|)index_last_48h.html$ [or] ...@@ -91,19 +91,19 @@ RewriteCond %{REQUEST_URI} ^/(debian/|)index_last_48h.html$ [or]
RewriteCond %{REQUEST_URI} ^/(debian/|)index_all_abc.html$ RewriteCond %{REQUEST_URI} ^/(debian/|)index_all_abc.html$
RewriteRule ^/(debian/|)?(.+) /debian/unstable/amd64/$2 [R=301,L] RewriteRule ^/(debian/|)?(.+) /debian/unstable/amd64/$2 [R=301,L]
# redirect /testing to /buster # redirect /testing to /bullseye
# note: no flags on the rule, will cause apache to continue after rewriting # note: no flags on the rule, will cause apache to continue after rewriting
# the url and apply the next rule # the url and apply the next rule
Rewritecond %{REQUEST_URI} ^/debian/testing Rewritecond %{REQUEST_URI} ^/debian/testing
RewriteRule ^/debian/testing/(.*) /debian/buster/$1 RewriteRule ^/debian/testing/(.*) /debian/bullseye/$1
# redirect /$suite to /$suite/index_suite_amd64_stats.html # redirect /$suite to /$suite/index_suite_amd64_stats.html
# note: the missing slash in the RewriteRule is wanted to avoid a double slash # note: the missing slash in the RewriteRule is wanted to avoid a double slash
RewriteCond %{REQUEST_URI} ^/(debian/|)(stretch|buster|unstable|experimental)(/|)$ RewriteCond %{REQUEST_URI} ^/(debian/|)(stretch|buster|bullseye|unstable|experimental)(/|)$
RewriteRule ^/(debian/|)(.*) /debian/$2/index_suite_amd64_stats.html [R,L] RewriteRule ^/(debian/|)(.*) /debian/$2/index_suite_amd64_stats.html [R,L]
# redirect /$suite/$arch to $suite/index_suite_$arch_stats.html # redirect /$suite/$arch to $suite/index_suite_$arch_stats.html
RewriteCond %{REQUEST_URI} ^/(debian/|)(stretch|buster|unstable|experimental)/(amd64|arm64|armhf|i386)(/|)$ RewriteCond %{REQUEST_URI} ^/(debian/|)(stretch|buster|bullseye|unstable|experimental)/(amd64|arm64|armhf|i386)(/|)$
RewriteRule ^/(debian/|)([a-z0-9]+)/([a-z0-9]+) /debian/$2/index_suite_$3_stats.html [R,L] RewriteRule ^/(debian/|)([a-z0-9]+)/([a-z0-9]+) /debian/$2/index_suite_$3_stats.html [R,L]
# redirect /$arch to /unstable/index_suite_$arch_stats.html # redirect /$arch to /unstable/index_suite_$arch_stats.html
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment