mirror-isc => '149.20.4.15',
default => undef,
}
+ $archive_root = $::hostname ? {
+ default => '/srv/mirrors/debian-ports',
+ }
+ $archive_cd_root = $::hostname ? {
+ default => '/srv/mirrors/debian-ports-cd',
+ }
apache2::site { '010-ftp.ports.debian.org':
site => 'ftp.ports.debian.org',
RedirectMatch "^/$" /debian-ports/
- Alias /debian-ports /srv/mirrors/debian-ports
- Use ftp-archive /srv/mirrors/debian-ports
+ Alias /debian-ports <%= @archive_root %>
+ Use ftp-archive <%= @archive_root %>
- Alias /debian-ports-cd /srv/mirrors/debian-ports-cd
- <Directory /srv/mirrors/debian-ports-cd>
+ Alias /debian-ports-cd <%= @archive_cd_root %>
+ <Directory <%= @archive_cd_root %>>
Require all granted
Options +Indexes
Options +FollowSymLinks