The TCP BBR module is only available on stretch and later
[mirror/dsa-puppet.git] / modules / roles / templates / apache-www.debian.org.erb
index a83717a..b26d883 100644 (file)
 
 # Relocation of blends pages
    RewriteRule ^/devel/hamradio(.*)$ /blends/hamradio$1 [R=301,L]
+
+# Relocation of derivatives pages
+   RewriteRule ^/misc/children-distros(?:\.html)?$ /derivatives/ [R=301,L]
+   RewriteRule ^/misc/children-distros(\.[^\.]+(?:\.html)?)$ /derivatives/index$1 [R=301,L]
 </Macro>
 
 <Macro common-www.d.o>
    ServerName www.debian.org
    ServerAlias www-*.debian.org
-   <% if scope.function_onion_global_service_hostname(['www.debian.org']) -%>
-   ServerAlias <%= scope.function_onion_global_service_hostname(['www.debian.org']) %>
-   <% end %>
 
    Use common-www.d.o-inner
 </Macro>
    ErrorLog /var/log/apache2/www.debian.org-error.log
    CustomLog /var/log/apache2/www.debian.org-access.log privacy
 
-   Use common-www.d.o
+   ServerName www.debian.org
+   Redirect / https://www.debian.org/
 </VirtualHost>
 <VirtualHost <%= @vhost_listen_443 %> >
    ErrorLog /var/log/apache2/www.debian.org-error.log
    Use common-ssl-HSTS
 </VirtualHost>
 
+<% if scope.function_onion_global_service_hostname(['www.debian.org']) -%>
+<VirtualHost <%= @vhost_listen %> >
+   ErrorLog /var/log/apache2/www.debian.org-error.log
+   CustomLog /var/log/apache2/www.debian.org-access.log privacy
+
+   ServerName <%= scope.function_onion_global_service_hostname(['www.debian.org']) %>
+
+   Use common-www.d.o-inner
+</VirtualHost>
+<% end %>
+
 
 # www other
 ###########