84f4533e2206388193ab917ce01601c4ff839b8f
[mirror/dsa-puppet.git] / modules / apache2 / templates / default-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 *:80>
7         ServerAdmin debian-admin@debian.org
8
9         ErrorLog /var/log/apache2/error.log
10         CustomLog /var/log/apache2/access.log combined
11
12         DocumentRoot /srv/www/default.debian.org/htdocs
13
14         HostnameLookups Off
15         UseCanonicalName Off
16         ServerSignature On
17 <%=
18 out = case fqdn
19   when "master.debian.org" then ""
20 else
21 "
22         <IfModule mod_userdir.c>
23                 UserDir disabled
24         </IfModule>
25 "
26 end
27 case fqdn
28   when "spohr.debian.org" then
29     out += "
30         Alias /debian \"/org/mirrors/ftp.debian.org/ftp\"
31 "
32   when "piatti.debian.org" then
33     out += "
34        # for piuparts, RT#1218
35        Alias /debian/ \"/org/mirrors/ftp.debian.org/ftp/\"
36        <Directory \"/org/mirrors/ftp.debian.org/ftp/\">
37                Options Indexes MultiViews FollowSymLinks
38                AllowOverride None
39                Order deny,allow
40                Deny from all
41                Allow from 127.0.0.0/255.0.0.0 ::1/128 193.167.161.225/32
42        </Directory>
43 "
44 end
45 out
46 %>
47 </VirtualHost>
48 # vim:set syn=apache: