[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] reproducible: apache2: stop issuing 301 redirects for things that are not that permanent
Mattia Rizzolo (@mattia)
gitlab at salsa.debian.org
Tue Aug 17 12:36:44 BST 2021
Mattia Rizzolo pushed to branch master at Debian QA / jenkins.debian.net
Commits:
e8c9ac58 by Mattia Rizzolo at 2021-08-17T13:36:36+02:00
reproducible: apache2: stop issuing 301 redirects for things that are not that permanent
Signed-off-by: Mattia Rizzolo <mattia at debian.org>
- - - - -
1 changed file:
- hosts/jenkins/etc/apache2/reproduciblemap.conf
Changes:
=====================================
hosts/jenkins/etc/apache2/reproduciblemap.conf
=====================================
@@ -59,23 +59,23 @@ RewriteRule ^/(debian/|)(stretch|testing|unstable|experimental)/([a-z0-9]+)/([a-
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond /var/lib/jenkins/userContent/reproducible/debian/rb-pkg/unstable/amd64/$2 -f
-RewriteRule ^/(debian/|)rb-pkg/([a-z0-9.+-]+) /debian/rb-pkg/unstable/amd64/$2 [R=301,L]
+RewriteRule ^/(debian/|)rb-pkg/([a-z0-9.+-]+) /debian/rb-pkg/unstable/amd64/$2 [R,L]
# the same for /dbd/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond /var/lib/jenkins/userContent/reproducible/debian/dbd/unstable/amd64/$2 -f
-RewriteRule ^/(debian/|)dbd/([a-z0-9.+-_]+) /debian/dbd/unstable/amd64/$2 [R=301,L]
+RewriteRule ^/(debian/|)dbd/([a-z0-9.+-_]+) /debian/dbd/unstable/amd64/$2 [R,L]
# the same for /rbuild/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond /var/lib/jenkins/userContent/reproducible/debian/rbuild/unstable/amd64/$2 -f
-RewriteRule ^/(debian/|)rbuild/([a-z0-9.+-_]+) /debian/rbuild/unstable/amd64/$2 [R=301,L]
+RewriteRule ^/(debian/|)rbuild/([a-z0-9.+-_]+) /debian/rbuild/unstable/amd64/$2 [R,L]
# the same for /buildinfo/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond /var/lib/jenkins/userContent/reproducible/debian/buildinfo/unstable/amd64/$2 -f
-RewriteRule ^/(debian/|)buildinfo/([a-z0-9.+-_]+) /debian/buildinfo/unstable/amd64/$2 [R=301,L]
+RewriteRule ^/(debian/|)buildinfo/([a-z0-9.+-_]+) /debian/buildinfo/unstable/amd64/$2 [R,L]
# redirect some t.r-b.o/index_*.html to the suite/arch relative one
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
@@ -89,7 +89,7 @@ RewriteCond %{REQUEST_URI} ^/(debian/|)index_blacklisted.html$ [or]
RewriteCond %{REQUEST_URI} ^/(debian/|)index_last_24h.html$ [or]
RewriteCond %{REQUEST_URI} ^/(debian/|)index_last_48h.html$ [or]
RewriteCond %{REQUEST_URI} ^/(debian/|)index_all_abc.html$
-RewriteRule ^/(debian/|)?(.+) /debian/unstable/amd64/$2 [R=301,L]
+RewriteRule ^/(debian/|)?(.+) /debian/unstable/amd64/$2 [R,L]
# redirect /testing to /bullseye
# note: no flags on the rule, will cause apache to continue after rewriting
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/e8c9ac58d3b5a8a08d12707ecfcf0e0096063fd1
--
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/e8c9ac58d3b5a8a08d12707ecfcf0e0096063fd1
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/qa-jenkins-scm/attachments/20210817/c939009d/attachment-0001.htm>
More information about the Qa-jenkins-scm
mailing list