Move the Cache-Control setting for package archives to a macro
[mirror/dsa-puppet.git] / modules / roles / templates / apache-ftp.ports.debian.org.erb
1 ##
2 ## THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE.
3 ## USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git
4 ##
5
6 <VirtualHost <%= vhost_listen %> >
7         ServerAdmin debian-admin@debian.org
8         ServerName ftp.ports.debian.org
9
10
11         ErrorLog /var/log/apache2/ftp.ports.debian.org-error.log
12         LogLevel warn
13         CustomLog /var/log/apache2/ftp.ports.debian.org-access.log privacy
14
15         RedirectMatch "^/$" /debian-ports/
16
17         Alias /debian-ports /srv/mirrors/debian-ports
18         <Directory /srv/mirrors/debian-ports>
19                 Require all granted
20                 IndexOptions NameWidth=* +SuppressDescription
21                 Options +Indexes
22                 Options +FollowSymLinks
23         </Directory>
24         Use ftp-archive /srv/mirrors/debian-ports
25
26         Alias /debian-ports-cd /srv/mirrors/debian-ports-cd
27         <Directory /srv/mirrors/debian-ports-cd>
28                 Require all granted
29                 IndexOptions NameWidth=* +SuppressDescription
30                 Options +Indexes
31                 Options +FollowSymLinks
32         </Directory>
33 </VirtualHost>