new security mirror in SA
[mirror/dsa-puppet.git] / modules / apache2 / templates / default-debian.org.erb
index ba55d93..b07bed5 100644 (file)
        UseCanonicalName Off
        ServerSignature On
 <%=
-out = ''
-if fqdn == "merkel.debian.org"
-  out = "
+out = case fqdn
+  when "merkel.debian.org"
+  then "
         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"
+                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
@@ -30,13 +30,32 @@ if fqdn == "merkel.debian.org"
                 Allow from all
         </Directory>
 "
+  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>