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=7cf8b7eb558549cc7c5ff4c7c6e8356d91b91077;hp=ec48ff6296b56e8a63b2aad74b36276aa36555a9;hpb=23b0492cd0c45eaefec93909a338b12bde7bed50;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 ec48ff629..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 + 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,6 +17,9 @@ DocumentRoot /srv/static.debian.org/mirrors/planet.debian.org/cur AddDefaultCharset utf-8 + + Require all granted + RewriteEngine On RewriteCond %{HTTP_HOST} ^planeta.debian.net$ [NC] @@ -19,4 +27,6 @@ RewriteCond %{HTTP_HOST} ^planet.debian.net$ [NC] RewriteRule ^/(.*) http://planet.debian.org/$1 [R=permanent,L] +<% end -%> + # vim:set syn=apache: