]> git.donarmstrong.com Git - dsa-puppet.git/blob - modules/roles/templates/static-mirroring/static-vhost.conf.erb
Serve xhtml from generic cofiguration
[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 Indexes Options=Multiviews
12                 Options Multiviews Indexes FollowSymLinks Includes
13                 IndexOptions FancyIndexing NameWidth=*
14                 Order allow,deny
15                 Allow from all
16         </Directory>
17
18         DefaultType text/plain
19         AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css
20         AddOutputFilter INCLUDES .xhtml
21 </Macro>
22
23
24 <Macro common-static-vhost-with-extra $name $extra>
25         <Virtualhost <%= vhost_listen %> >
26                 ServerName $name
27                 ServerAdmin debian-admin@lists.debian.org
28
29                 ErrorLog /var/log/apache2/$name-error.log
30                 CustomLog /var/log/apache2/$name-access.log privacy
31
32                 Use common-static-base $name
33                 $extra
34         </VirtualHost>
35 </Macro>
36
37 <Macro common-static-vhost-publiclog $name>
38         <Virtualhost <%= vhost_listen %> >
39                 ServerName $name
40                 ServerAdmin debian-admin@lists.debian.org
41
42                 ErrorLog /var/log/apache2/$name-error.log
43                 CustomLog /var/log/apache2/$name-access.log privacy
44                 <IfModule mod_geoip.c>
45                         CustomLog /var/log/apache2/$name-public-access.log privacy+geo
46                 </IfModule>
47
48                 Use common-static-base $name
49         </VirtualHost>
50 </Macro>
51
52 <Macro common-static-vhost $name>
53         Use common-static-vhost-with-extra $name "# nada"
54 </Macro>
55
56
57 # vim:ft=apache: