Attempt to configure an apache vhost for a static component only if it exists on...
[mirror/dsa-puppet.git] / modules / roles / templates / static-mirroring / vhost / planet.debian.org.erb
index 758771c..20f9298 100644 (file)
@@ -1,3 +1,5 @@
+<% if scope.function_has_static_component(['planet.debian.org']) -%>
+
 <Virtualhost <%= vhost_listen %> >
        ServerName planet.debian.org
        ServerAlias planet.debian.net planeta.debian.net planet-backend.debian.org planet-fastly.debian.org planet-maxcdn.debian.org
@@ -24,4 +26,6 @@
        RewriteCond %{HTTP_HOST} ^planet.debian.net$ [NC]
        RewriteRule ^/(.*)        http://planet.debian.org/$1  [R=permanent,L]
 </VirtualHost>
+<% end -%>
+
 # vim:set syn=apache: