klecker => '130.89.148.14:80 [2001:610:1908:b000::148:14]:80',
default => '*:80',
}
+ $vhost_listen_443 = $::hostname ? {
+ klecker => '130.89.148.14:443 [2001:610:1908:b000::148:14]:443',
+ default => '*:443',
+ }
apache2::config { 'local-static-vhost.conf':
content => template('roles/static-mirroring/static-vhost.conf.erb'),
$wwwdo_document_root = '/srv/www.debian.org/www'
$vhost_listen = '*:80'
+ $vhost_listen_443 = '*:443'
apache2::site { '010-www.debian.org':
site => 'www.debian.org',
content => template('roles/apache-www.debian.org.erb'),
<Macro common-static-vhost-ssl $name>
- Use common-debian-service-https-redirect <%= vhost_listen %> $name
+ <VirtualHost <%= vhost_listen %> >
+ ServerName $name
+ ServerAdmin debian-admin@lists.debian.org
+
+ CustomLog /var/log/apache2/$name-access.log privacy
+ ErrorLog /var/log/apache2/$name-error.log
+
+ Redirect permanent / https://$name/
+ </VirtualHost>
- <Virtualhost <%= vhost_listen %>:443 >
+ <Virtualhost <%= vhost_listen_443 %> >
ServerName $name
ServerAdmin debian-admin@lists.debian.org