- <% if @lsbmajdistrelease > '7' -%>
- <Directory /srv/static.debian.org/mirrors/planet.debian.org/cur>
- Require all granted
- </Directory>
- <% end -%>
-
- RewriteEngine On
- RewriteCond %{HTTP_HOST} ^planeta.debian.net$ [NC]
- RewriteRule ^/(.*) http://planet.debian.org/es/$1 [R=permanent,L]
- RewriteCond %{HTTP_HOST} ^planet.debian.net$ [NC]
- RewriteRule ^/(.*) http://planet.debian.org/$1 [R=permanent,L]
+ <Directory /srv/static.debian.org/mirrors/planet.debian.org/cur>
+ Require all granted
+ </Directory>
+</Macro>
+
+<Virtualhost <%= @vhost_listen %> >
+ ServerName planet.debian.org
+ ServerAlias 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 %>
+
+ CustomLog /var/log/apache2/planet.debian.org-access.log privacy
+ Use common-planet.d.o