more ganeti nodes
[mirror/dsa-puppet.git] / modules / apache2 / templates / default-debian.org.erb
index ba55d93..84f4533 100644 (file)
        UseCanonicalName Off
        ServerSignature On
 <%=
-out = ''
-if fqdn == "merkel.debian.org"
-  out = "
-        RemoveType .php .phtml .php3 .phps
-        php_admin_flag engine off
-        <Directory /home/don/public_html/cgi>
-                SetEnv PERLLIB "/home/don/perl/usr/share/perl5:/home/don/source/"
-                SetEnv DEBBUGS_CONFIG_FILE "/home/don/config_internal"
-                SetHandler cgi-script
-                AllowOverride None
-                Options +ExecCGI
-                Order allow,deny
-                Allow from all
-        </Directory>
-"
+out = case fqdn
+  when "master.debian.org" then ""
 else
-  out = "
+"
        <IfModule mod_userdir.c>
                UserDir disabled
        </IfModule>
 "
 end
+case fqdn
+  when "spohr.debian.org" then
+    out += "
+        Alias /debian \"/org/mirrors/ftp.debian.org/ftp\"
+"
+  when "piatti.debian.org" then
+    out += "
+       # for piuparts, RT#1218
+       Alias /debian/ \"/org/mirrors/ftp.debian.org/ftp/\"
+       <Directory \"/org/mirrors/ftp.debian.org/ftp/\">
+               Options Indexes MultiViews FollowSymLinks
+               AllowOverride None
+               Order deny,allow
+               Deny from all
+               Allow from 127.0.0.0/255.0.0.0 ::1/128 193.167.161.225/32
+       </Directory>
+"
+end
 out
 %>
 </VirtualHost>