X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fapache2%2Ftemplates%2Fdefault-debian.org.erb;h=9f40d2a2e55c40527c3f4d8fe02365af0b63f01c;hb=87b368cbbf9113e7b9a6e230d4d4272ef60114f6;hp=ba55d93b3b38d33cdc1f92cfc58ab0dfd8901f1a;hpb=3ea3aea25101a514630219634a55b8fa9c55576e;p=mirror%2Fdsa-puppet.git diff --git a/modules/apache2/templates/default-debian.org.erb b/modules/apache2/templates/default-debian.org.erb index ba55d93b3..9f40d2a2e 100644 --- a/modules/apache2/templates/default-debian.org.erb +++ b/modules/apache2/templates/default-debian.org.erb @@ -7,7 +7,7 @@ ServerAdmin debian-admin@debian.org ErrorLog /var/log/apache2/error.log - CustomLog /var/log/apache2/access.log combined + CustomLog /var/log/apache2/access.log privacy DocumentRoot /srv/www/default.debian.org/htdocs @@ -15,28 +15,34 @@ UseCanonicalName Off ServerSignature On <%= -out = '' -if fqdn == "merkel.debian.org" - out = " - RemoveType .php .phtml .php3 .phps - php_admin_flag engine off - - 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 - -" +out = case fqdn + when "master.debian.org" then "" + when "vento.debian.org" then "" else - out = " +" UserDir disabled " 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/\" + + 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 + +" +end out %>