set Expires to 1 week also for .gz files
[mirror/dsa-puppet.git] / modules / roles / templates / apache-alioth-archive.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
7 <Macro vhost-inner-alioth-archive.debian.org>
8         ServerAdmin debian-admin@lists.debian.org
9         DocumentRoot /srv/alioth-archive.debian.org/htdocs
10
11         ErrorLog /var/log/apache2/alioth-archive.debian.org-error.log
12         CustomLog /var/log/apache2/alioth-archive.debian.org-access.log privacy
13
14         <Directory /srv/alioth-archive.debian.org/htdocs>
15                 Require all granted
16                 AllowOverride none
17                 Options Indexes
18         </Directory>
19
20         RewriteEngine On
21
22         ExpiresActive On
23         ExpiresDefault "access plus 2 hours"
24         ExpiresByType application/x-xz "access plus 1 week"
25         ExpiresByType application/x-gzip "access plus 1 week"
26
27         <IfModule mod_userdir.c>
28                 UserDir disabled
29         </IfModule>
30 </Macro>
31
32 Use common-debian-service-https-redirect * alioth-archive.debian.org
33
34 <VirtualHost *:443>
35         ServerName alioth-archive.debian.org
36         Use common-debian-service-ssl alioth-archive.debian.org
37         Use common-ssl-HSTS
38         Use http-pkp-alioth-archive.debian.org
39         Use vhost-inner-alioth-archive.debian.org
40 </VirtualHost>
41
42 # vim:set syn=apache: