# Rewrite away double slashes
RewriteEngine on
RewriteCond %{REQUEST_URI} ^(.*)//(.*)$ [NC]
- RewriteRule . %1/%2 [R=301,L,NE]
+ RewriteRule . %1/%2 [L,NE]
<LocationMatch "/changelogs/(main|contrib|non-free)">
ForceType text/plain
RewriteMap source-map txt:/srv/static.debian.org/mirrors/lintian.debian.org/cur/lookup-tables/source-packages
# Re-direct from the "old" locations to the new ones
- RewriteRule ^/reports/T(.*)\.html$ /tags/$1.html [L,R=permanent]
- RewriteRule ^/reports/(.*)$ /$1 [L,R=permanent]
+ RewriteRule ^/reports/T(.*)\.html$ /tags/$1.html [L]
+ RewriteRule ^/reports/(.*)$ /$1 [L]
# Map source packages to reports (this mapping is re-written once per lintian run,
# serve it as a 302 rather than a permanent redirect)
</Location>
RewriteEngine on
- RewriteRule ^/$ /wiki/Main_Page [L,R=permanent]
- RewriteRule ^/wiki/$ /wiki/Main_Page [L,R=permanent]
+ SSLProxyEngine on
+ RewriteRule ^/$ /wiki/Main_Page [L,P]
+ RewriteRule ^/wiki/$ /wiki/Main_Page [L]
RewriteCond %{QUERY_STRING} (^|&)modules=mediawiki.legacy.commonPrint,shared|skins.monobook(&|$)
RewriteCond %{QUERY_STRING} (^|&)only=styles(&|$)
RewriteEngine On
# A few redirects for older debconf sites, so old links work
- RewriteRule ^/gallery/(.*)$ https://gallery.debconf.org/v/$1 [R=permanent,L]
- RewriteRule ^/.*years$ https://10years.debconf.org/ [R=permanent,L]
- RewriteRule ^/debconf2$ https://debconf2.debconf.org/ [R=permanent,L]
- RewriteRule ^/debconf3$ https://debconf3.debconf.org/ [R=permanent,L]
- RewriteRule ^/debconf4$ https://debconf4.debconf.org/ [R=permanent,L]
- RewriteRule ^/debconf5$ https://debconf5.debconf.org/ [R=permanent,L]
- RewriteRule ^/10years/(.*)$ https://10years.debconf.org/$1 [R=permanent,L]
- RewriteRule ^/debconf2/(.*)$ https://debconf2.debconf.org/$1 [R=permanent,L]
- RewriteRule ^/debconf3/(.*)$ https://debconf3.debconf.org/$1 [R=permanent,L]
- RewriteRule ^/debconf4/(.*)$ https://debconf4.debconf.org/$1 [R=permanent,L]
- RewriteRule ^/debconf5/(.*)$ https://debconf5.debconf.org/$1 [R=permanent,L]
+ RewriteRule ^/gallery/(.*)$ https://gallery.debconf.org/v/$1 [L]
+ RewriteRule ^/.*years$ https://10years.debconf.org/ [L]
+ RewriteRule ^/debconf2$ https://debconf2.debconf.org/ [L]
+ RewriteRule ^/debconf3$ https://debconf3.debconf.org/ [L]
+ RewriteRule ^/debconf4$ https://debconf4.debconf.org/ [L]
+ RewriteRule ^/debconf5$ https://debconf5.debconf.org/ [L]
+ RewriteRule ^/10years/(.*)$ https://10years.debconf.org/$1 [L]
+ RewriteRule ^/debconf2/(.*)$ https://debconf2.debconf.org/$1 [L]
+ RewriteRule ^/debconf3/(.*)$ https://debconf3.debconf.org/$1 [L]
+ RewriteRule ^/debconf4/(.*)$ https://debconf4.debconf.org/$1 [L]
+ RewriteRule ^/debconf5/(.*)$ https://debconf5.debconf.org/$1 [L]
</Macro>
<Macro vstatic-vhost-extra-openpgpkey.debian.org>
+ # Legacy GPG versions (including 2.2.12 in buster/Debian 10) get redirections from
+ # the (not supposed to be default) direct method wrong.
+ # They ask for https://debian.org/.well-known/openpgpkey/hu/<hash>
+ # get a redirect to https://openpgpkey.debian.org/.well-known/openpgpkey/debian.org/hu/<hash>
+ # and then try to fetch https://openpgpkey.debian.org/.well-known/openpgpkey/hu/<hash>
+ # *sigh*
+ # cf. https://dev.gnupg.org/T4603
+ Alias /.well-known/openpgpkey/hu/ /srv/static.debian.org/mirrors/openpgpkey.debian.org/cur/debian.org/hu/
+ Alias /.well-known/openpgpkey/policy /srv/static.debian.org/mirrors/openpgpkey.debian.org/cur/debian.org/policy
+
+ # The draft specified well-known place using the "advanced method"
Alias /.well-known/openpgpkey/ /srv/static.debian.org/mirrors/openpgpkey.debian.org/cur/
-
<Location />
Options -Indexes
</Location>
+
+ RewriteEngine on
+ RewriteRule ^/$ https://keyring.debian.org/ [L]
</Macro>
<%=
vhost(lines, "debconf16.debconf.org" , :ssl => true)
vhost(lines, "debconf17.debconf.org" , :ssl => true)
vhost(lines, "debconf18.debconf.org" , :ssl => true)
-vhost(lines, "debconf19.debconf.org" , :ssl => true)
vhost(lines, "es.debconf.org" , :ssl => true)
vhost(lines, "fr.debconf.org" , :ssl => true)
vhost(lines, "miniconf10.debconf.org" , :ssl => true)