Split common-www.d.o into common-www.d.o and -inner
authorPeter Palfrader <peter@palfrader.org>
Sat, 28 Oct 2017 08:43:34 +0000 (10:43 +0200)
committerPeter Palfrader <peter@palfrader.org>
Sat, 28 Oct 2017 08:44:06 +0000 (10:44 +0200)
modules/roles/templates/apache-www.debian.org.erb

index 9f07c0d..a83717a 100644 (file)
    CustomLog /var/log/apache2/www-other.debian.org-access.log privacy+host
 </Macro>
 
-<Macro common-www.d.o>
-   ServerName www.debian.org
+<Macro common-www.d.o-inner>
    ServerAdmin webmaster@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 %>
-
    DocumentRoot <%= @wwwdo_document_root %>/
 
    # CacheNegotiatedDocs: By default, Apache sends Pragma: no-cache with each
    RewriteRule ^/devel/hamradio(.*)$ /blends/hamradio$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>
+
 
 <VirtualHost <%= @vhost_listen %> >
    ErrorLog /var/log/apache2/www.debian.org-error.log