ssl::service { 'manpages.debian.org' : ensure => "ifstatic", notify => Exec['service apache2 reload'], key => true, }
ssl::service { 'mirror-master.debian.org' : ensure => "ifstatic", notify => Exec['service apache2 reload'], key => true, }
ssl::service { 'onion.debian.org' : ensure => "ifstatic", notify => Exec['service apache2 reload'], key => true, }
+ ssl::service { 'planet-backend.debian.org' : ensure => "ifstatic", notify => Exec['service apache2 reload'], key => true, }
ssl::service { 'release.debian.org' : ensure => "ifstatic", notify => Exec['service apache2 reload'], key => true, }
ssl::service { 'rtc.debian.org' : ensure => "ifstatic", notify => Exec['service apache2 reload'], key => true }
ssl::service { 'security-team.debian.org' : ensure => "ifstatic", notify => Exec['service apache2 reload'], key => true, }
<% 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
- <% if scope.function_onion_global_service_hostname(['planet.debian.org']) -%>
- ServerAlias <%= scope.function_onion_global_service_hostname(['planet.debian.org']) %>
- <% end %>
+<Macro common-planet.d.o>
ServerAdmin planet@debian.org
ErrorLog /var/log/apache2/planet.debian.org-error.log
<Directory /srv/static.debian.org/mirrors/planet.debian.org/cur>
Require all granted
</Directory>
+</Macro>
+
+<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
+ <% if scope.function_onion_global_service_hostname(['planet.debian.org']) -%>
+ ServerAlias <%= scope.function_onion_global_service_hostname(['planet.debian.org']) %>
+ <% end %>
+
+ Use common-planet.d.o
RewriteEngine On
RewriteCond %{HTTP_HOST} ^planeta.debian.net$ [NC]
RewriteCond %{HTTP_HOST} ^planet.debian.net$ [NC]
RewriteRule ^/(.*) http://planet.debian.org/$1 [R=permanent,L]
</VirtualHost>
+
+<VirtualHost <%= @vhost_listen_443 %> >
+ ServerName planet-backend.debian.org
+
+ Use common-debian-service-ssl planet-backend.debian.org
+ Use common-planet.d.o
+
+</VirtualHost>
+
<% end -%>
# vim:set syn=apache: