X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Froles%2Ftemplates%2Fstatic-mirroring%2Fvhost%2Fplanet.debian.org.erb;h=7d0ab0159ebdf998db8ccb865d4cf475f75af1fe;hb=2f5346c750874d225f37e3498ad8bd71e9b11c3a;hp=758771caed8b0741d43fda8daf31153868bfb6ad;hpb=275487c062170f8376dc08021cca3220612b22c4;p=mirror%2Fdsa-puppet.git diff --git a/modules/roles/templates/static-mirroring/vhost/planet.debian.org.erb b/modules/roles/templates/static-mirroring/vhost/planet.debian.org.erb index 758771cae..7d0ab0159 100644 --- a/modules/roles/templates/static-mirroring/vhost/planet.debian.org.erb +++ b/modules/roles/templates/static-mirroring/vhost/planet.debian.org.erb @@ -1,6 +1,11 @@ +<% if scope.function_has_static_component(['planet.debian.org']) -%> + > ServerName planet.debian.org ServerAlias planet.debian.net planeta.debian.net planet-backend.debian.org planet-fastly.debian.org planet-maxcdn.debian.org + <% if scope.function_onion_global_service_hostname(['planet.debian.org']) -%> + ServerAlias <%= scope.function_onion_global_service_hostname(['planet.debian.org']) %> + <% end %> ServerAdmin planet@debian.org ErrorLog /var/log/apache2/planet.debian.org-error.log @@ -12,11 +17,9 @@ DocumentRoot /srv/static.debian.org/mirrors/planet.debian.org/cur AddDefaultCharset utf-8 - <% if @lsbmajdistrelease > '7' -%> - - Require all granted - - <% end -%> + + Require all granted + RewriteEngine On RewriteCond %{HTTP_HOST} ^planeta.debian.net$ [NC] @@ -24,4 +27,6 @@ RewriteCond %{HTTP_HOST} ^planet.debian.net$ [NC] RewriteRule ^/(.*) http://planet.debian.org/$1 [R=permanent,L] +<% end -%> + # vim:set syn=apache: