]> git.donarmstrong.com Git - dsa-puppet.git/blob - modules/roles/templates/static-mirroring/static-vhost.conf.erb
Use logformat privacy
[dsa-puppet.git] / modules / roles / templates / static-mirroring / static-vhost.conf.erb
1 # puppet maintained
2
3 <Macro common-static-vhost $name>
4 <Macro common-$name>
5         <IfModule mod_userdir.c>
6                 UserDir disabled
7         </IfModule>
8         ServerSignature On
9
10         DocumentRoot /srv/static.debian.org/cur/$name/
11         <Directory /srv/static.debian.org/cur/$name/>
12                 AllowOverride FileInfo
13                 Options Multiviews Indexes FollowSymLinks
14                 IndexOptions FancyIndexing NameWidth=*
15                 Order allow,deny
16                 Allow from all
17         </Directory>
18
19         AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css
20 </Macro>
21
22 <Virtualhost <%= vhost_listen %> >
23         ServerName $name
24         ServerAdmin debian-admin@lists.debian.org
25
26         ErrorLog /var/log/apache2/$name-error.log
27         CustomLog /var/log/apache2/$name-access.log privacy
28
29         Use common-$name
30 </VirtualHost>
31
32 </Macro>
33
34 # vim:ft=apache: