ServerAlias security-nagios.debian.org
ServerAlias security-fastly.debian.org
+ ExpiresActive On
+ ExpiresDefault "access plus 2 minutes"
+
Alias /debian-security /org/security.debian.org/ftp
+ <Directory /org/security.debian.org/ftp/pool>
+ <FilesMatch "\.(bz2|gz|deb|dsc|xz)$">
+ ExpiresDefault "access plus 1 month"
+ Header append Cache-Control "public"
+ </FilesMatch>
+ </Directory>
+
RewriteEngine on
RewriteRule ^/$ http://www.debian.org/security/
class roles::security_mirror {
+ include apache2::cache
apache2::site { '010-security.debian.org':
site => 'security.debian.org',
source => 'puppet:///modules/roles/security_mirror/security.debian.org'
class roles::static_mirror {
include roles::static_source
+ include apache2::cache
package { 'libapache2-mod-macro': ensure => installed, }
package { 'libapache2-mod-geoip': ensure => installed, }
apache2::module { 'macro': require => Package['libapache2-mod-macro']; }
apache2::module { 'rewrite': }
- apache2::module { 'expires': }
apache2::module { 'geoip': require => [Package['libapache2-mod-geoip'], Package['geoip-database']]; }
file { '/usr/local/bin/static-mirror-run':
default => '*:80',
}
- apache2::config { "local-static-vhost.conf":
+ apache2::config { 'local-static-vhost.conf':
content => template('roles/static-mirroring/static-vhost.conf.erb'),
}
}
apache2::site { '010-static-vhosts-simple':
- site => "static-vhosts-simple",
+ site => 'static-vhosts-simple',
content => template('roles/static-mirroring/vhost/static-vhosts-simple.erb'),
}