--- /dev/null
+<IfModule mod_headers.c>
+ <IfModule mod_macro.c>
+ <Macro ftp-archive $root>
+ <Directory $root/pool>
+ <Files ?*>
+ Header set Cache-Control "public, max-age=2592000"
+ </Files>
+ </Directory>
+ <Directory $root/dists>
+ <Files ?*>
+ Header set Cache-Control "public, max-age=120"
+ </Files>
+ </Directory>
+ <DirectoryMatch "^$root/dists/.*/by-hash">
+ <Files ?*>
+ Header set Cache-Control "public, max-age=2592000"
+ </Files>
+ </DirectoryMatch>
+ </Macro>
+ </IfModule>
+</IfModule>
source => 'puppet:///modules/apache2/puppet-ssl-macros',
}
+ apache2::config { 'puppet-ftp-macros':
+ source => 'puppet:///modules/apache2/puppet-ftp-macros',
+ }
+
apache2::config { 'puppet-config':
content => template('apache2/puppet-config.erb'),
}
Options +Indexes
Options +FollowSymLinks
</Directory>
- <Directory /srv/mirrors/debian-debug/pool>
- <Files ?*>
- Header set Cache-Control "public, max-age=2592000"
- </Files>
- </Directory>
- <Directory /srv/mirrors/debian-debug/dists>
- <Files ?*>
- Header set Cache-Control "public, max-age=120"
- </Files>
- </Directory>
- <DirectoryMatch "^/srv/mirrors/debian-debug/dists/.*/by-hash">
- <Files ?*>
- Header set Cache-Control "public, max-age=2592000"
- </Files>
- </DirectoryMatch>
-
+ Use ftp-archive /srv/mirrors/debian-debug
</VirtualHost>
-
-
Options +Indexes
Options +FollowSymLinks
</Directory>
- <Directory /srv/mirrors/debian-ports/pool>
- <Files ?*>
- Header set Cache-Control "public, max-age=2592000"
- </Files>
- </Directory>
- <Directory /srv/mirrors/debian-ports/dists>
- <Files ?*>
- Header set Cache-Control "public, max-age=120"
- </Files>
- </Directory>
- <DirectoryMatch "^/srv/mirrors/debian-ports/dists/.*/by-hash">
- <Files ?*>
- Header set Cache-Control "public, max-age=2592000"
- </Files>
- </DirectoryMatch>
+ Use ftp-archive /srv/mirrors/debian-ports
Alias /debian-ports-cd /srv/mirrors/debian-ports-cd
<Directory /srv/mirrors/debian-ports-cd>
Options +FollowSymLinks
</Directory>
</VirtualHost>
-
-