]> git.donarmstrong.com Git - dsa-puppet.git/blob - modules/roles/templates/static-mirroring/static-vhost.conf.erb
Try to set utf8 on ftp-master.metadata
[dsa-puppet.git] / modules / roles / templates / static-mirroring / static-vhost.conf.erb
1 # puppet maintained
2
3 <Macro common-static-base $name>
4         <IfModule mod_userdir.c>
5                 UserDir disabled
6         </IfModule>
7         ServerSignature On
8
9         DocumentRoot /srv/static.debian.org/mirrors/$name/cur
10         <Directory /srv/static.debian.org/mirrors/$name/cur>
11                 AllowOverride FileInfo
12                 Options Multiviews Indexes FollowSymLinks
13                 IndexOptions FancyIndexing NameWidth=*
14                 Order allow,deny
15                 Allow from all
16         </Directory>
17
18         AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css
19 </Macro>
20
21
22 <Macro common-static-vhost-with-extra $name $extra>
23         <Virtualhost <%= vhost_listen %> >
24                 ServerName $name
25                 ServerAdmin debian-admin@lists.debian.org
26
27                 ErrorLog /var/log/apache2/$name-error.log
28                 CustomLog /var/log/apache2/$name-access.log privacy
29
30                 Use common-static-base $name
31                 $extra
32         </VirtualHost>
33 </Macro>
34
35 <Macro common-static-vhost-publiclog $name>
36         <Virtualhost <%= vhost_listen %> >
37                 ServerName $name
38                 ServerAdmin debian-admin@lists.debian.org
39
40                 ErrorLog /var/log/apache2/$name-error.log
41                 CustomLog /var/log/apache2/$name-access.log privacy
42                 <IfModule mod_geoip.c>
43                         CustomLog /var/log/apache2/$name-public-access.log privacy+geo
44                 </IfModule>
45
46                 Use common-static-base $name
47         </VirtualHost>
48 </Macro>
49
50 <Macro common-static-vhost $name>
51         Use common-static-vhost-with-extra $name "# nada"
52 </Macro>
53
54
55 # vim:ft=apache: