Do /debian alias on spohr differently
authorPeter Palfrader <peter@palfrader.org>
Sun, 16 Jun 2013 12:11:56 +0000 (12:11 +0000)
committerPeter Palfrader <peter@palfrader.org>
Sun, 16 Jun 2013 12:11:56 +0000 (12:11 +0000)
modules/apache2/templates/default-debian.org.erb

index 2a5beb0..ea0fa67 100644 (file)
        <IfModule mod_userdir.c>
                UserDir disabled
        </IfModule>
-<%=
-case fqdn
-  when "spohr.debian.org" then
-    out += "
-        Alias /debian \"/srv/mirrors/ftp.debian.org/ftp\"
-"
-end
-out
-%>
+<% if hostname == "spohr" -%>
+        Alias /debian "/srv/mirrors/ftp.debian.org/ftp"
+<% end -%>
 </VirtualHost>
 # vim:set syn=apache: