X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fapache2%2Ftemplates%2Fdefault-debian.org.erb;h=0c9eff39a2901e9e2d6aacfbd45784ae41ff42ff;hb=87f172c79bc34b54df8919127862ef3250f29236;hp=167c4fe6d1cde364e79f08433e2a4b81bd196128;hpb=3c2d5808649bffe49f6318969d988031ff7191b5;p=mirror%2Fdsa-puppet.git diff --git a/modules/apache2/templates/default-debian.org.erb b/modules/apache2/templates/default-debian.org.erb index 167c4fe6d..0c9eff39a 100644 --- a/modules/apache2/templates/default-debian.org.erb +++ b/modules/apache2/templates/default-debian.org.erb @@ -10,6 +10,11 @@ CustomLog /var/log/apache2/access.log privacy DocumentRoot /srv/www/default.debian.org/htdocs + <% if scope.call_function('versioncmp', [@lsbmajdistrelease, '7']) > 0 -%> + + Require all granted + + <% end -%> HostnameLookups Off UseCanonicalName Off @@ -18,26 +23,5 @@ UserDir disabled -<%= -case fqdn - when "spohr.debian.org" then - out += " - Alias /debian \"/srv/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 -%> # vim:set syn=apache: