Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Debian QA
jenkins.debian.net
Commits
e8c9ac58
Commit
e8c9ac58
authored
Aug 17, 2021
by
Mattia Rizzolo
Browse files
reproducible: apache2: stop issuing 301 redirects for things that are not that permanent
Signed-off-by:
Mattia Rizzolo
<
mattia@debian.org
>
parent
1c5b2efa
Changes
1
Hide whitespace changes
Inline
Side-by-side
hosts/jenkins/etc/apache2/reproduciblemap.conf
View file @
e8c9ac58
...
@@ -59,23 +59,23 @@ RewriteRule ^/(debian/|)(stretch|testing|unstable|experimental)/([a-z0-9]+)/([a-
...
@@ -59,23 +59,23 @@ RewriteRule ^/(debian/|)(stretch|testing|unstable|experimental)/([a-z0-9]+)/([a-
RewriteCond
%{
REQUEST_FILENAME
} !-
f
RewriteCond
%{
REQUEST_FILENAME
} !-
f
RewriteCond
%{
REQUEST_FILENAME
} !-
d
RewriteCond
%{
REQUEST_FILENAME
} !-
d
RewriteCond
/
var
/
lib
/
jenkins
/
userContent
/
reproducible
/
debian
/
rb
-
pkg
/
unstable
/
amd64
/$
2
-
f
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/
# the same for /dbd/
RewriteCond
%{
REQUEST_FILENAME
} !-
f
RewriteCond
%{
REQUEST_FILENAME
} !-
f
RewriteCond
%{
REQUEST_FILENAME
} !-
d
RewriteCond
%{
REQUEST_FILENAME
} !-
d
RewriteCond
/
var
/
lib
/
jenkins
/
userContent
/
reproducible
/
debian
/
dbd
/
unstable
/
amd64
/$
2
-
f
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/
# the same for /rbuild/
RewriteCond
%{
REQUEST_FILENAME
} !-
f
RewriteCond
%{
REQUEST_FILENAME
} !-
f
RewriteCond
%{
REQUEST_FILENAME
} !-
d
RewriteCond
%{
REQUEST_FILENAME
} !-
d
RewriteCond
/
var
/
lib
/
jenkins
/
userContent
/
reproducible
/
debian
/
rbuild
/
unstable
/
amd64
/$
2
-
f
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/
# the same for /buildinfo/
RewriteCond
%{
REQUEST_FILENAME
} !-
f
RewriteCond
%{
REQUEST_FILENAME
} !-
f
RewriteCond
%{
REQUEST_FILENAME
} !-
d
RewriteCond
%{
REQUEST_FILENAME
} !-
d
RewriteCond
/
var
/
lib
/
jenkins
/
userContent
/
reproducible
/
debian
/
buildinfo
/
unstable
/
amd64
/$
2
-
f
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
# redirect some t.r-b.o/index_*.html to the suite/arch relative one
RewriteCond
%{
REQUEST_FILENAME
} !-
f
RewriteCond
%{
REQUEST_FILENAME
} !-
f
RewriteCond
%{
REQUEST_FILENAME
} !-
d
RewriteCond
%{
REQUEST_FILENAME
} !-
d
...
@@ -89,7 +89,7 @@ RewriteCond %{REQUEST_URI} ^/(debian/|)index_blacklisted.html$ [or]
...
@@ -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_24h
.
html
$ [
or
]
RewriteCond
%{
REQUEST_URI
} ^/(
debian
/|)
index_last_48h
.
html
$ [
or
]
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
,
L
]
# redirect /testing to /bullseye
# 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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment