X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Froles%2Ftemplates%2Fstatic-mirroring%2Fvhost%2Fstatic-vhosts-simple.erb;h=adddd55b9d226bd4eafcede57a320ad5403dfec6;hb=faf0b00a7b3ef90757b7fcf9dec93c9987383f8a;hp=16ca9b9151045a7dd8f4b5a01ce6441d85b90860;hpb=6aa9951b699fd189adca040842264758395650d5;p=mirror%2Fdsa-puppet.git diff --git a/modules/roles/templates/static-mirroring/vhost/static-vhosts-simple.erb b/modules/roles/templates/static-mirroring/vhost/static-vhosts-simple.erb index 16ca9b915..adddd55b9 100644 --- a/modules/roles/templates/static-mirroring/vhost/static-vhosts-simple.erb +++ b/modules/roles/templates/static-mirroring/vhost/static-vhosts-simple.erb @@ -66,7 +66,7 @@ # Rewrite away double slashes RewriteEngine on RewriteCond %{REQUEST_URI} ^(.*)//(.*)$ [NC] - RewriteRule . %1/%2 [R=301,L,NE] + RewriteRule . %1/%2 [L,NE] ForceType text/plain @@ -140,8 +140,8 @@ 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) @@ -165,8 +165,9 @@ 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(&|$) @@ -208,17 +209,17 @@ 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] @@ -314,7 +315,6 @@ vhost(lines, "debconf7.debconf.org" , :ssl => true) 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)