www.debconf.org vhost update
authorJulien Cristau <jcristau@debian.org>
Thu, 17 Jan 2019 15:37:04 +0000 (16:37 +0100)
committerJulien Cristau <jcristau@debian.org>
Thu, 17 Jan 2019 15:37:36 +0000 (16:37 +0100)
Add missing redirects from current config on kent.debconf.org

modules/roles/templates/static-mirroring/vhost/static-vhosts-simple.erb

index 1519935..ae88c00 100644 (file)
        ServerAlias www-test.debconf.org
 
        <Directory /srv/static.debian.org/mirrors/www.debconf.org/cur>
-               Options +Includes
+               Options +IncludesNOEXEC
+               DirectoryIndex index.shtml
        </Directory>
 
        AddOutputFilter INCLUDES .shtml
+
+       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]
 </Macro>
 
 <%=