X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Froles%2Ftemplates%2Fsecurity_mirror%2Fsecurity.debian.org.erb;h=91e4056e477a3de0f17aaf8e4e351170617399c7;hb=59218dc7758da6a2378ee916fb7f6944a57062ee;hp=ce8e82a2b3ea6312749c9c46d0fa86a315f568d7;hpb=901a2500474ca42f467962c570fc580336145da0;p=mirror%2Fdsa-puppet.git diff --git a/modules/roles/templates/security_mirror/security.debian.org.erb b/modules/roles/templates/security_mirror/security.debian.org.erb index ce8e82a2b..91e4056e4 100644 --- a/modules/roles/templates/security_mirror/security.debian.org.erb +++ b/modules/roles/templates/security_mirror/security.debian.org.erb @@ -3,7 +3,7 @@ ## USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git ## - + 127.0.0.1:80 [::1]:80 > ServerAdmin debian-admin@debian.org DocumentRoot /srv/mirrors/debian-security ServerPath /debian-security @@ -42,19 +42,15 @@ RewriteCond %{HTTP:Fastly-Client-IP} !. [NV] RewriteCond %{HTTP_USER_AGENT} "!Amazon CloudFront" RewriteCond %{HTTP_USER_AGENT} "!check_http" + RewriteCond %{HTTP_USER_AGENT} "!dsa-check-mirrorsync" + RewriteCond %{HTTP_USER_AGENT} "!mirror-health" <% if scope.function_onion_global_service_hostname(['security.debian.org']) -%> RewriteCond %{HTTP_HOST} "!=<%= scope.function_onion_global_service_hostname(['security.debian.org']) %>" <% end %> - RewriteRule ^/(pool/updates/main/l/linux/.*) http://security-cdn.debian.org/$1 [L,R=302] - RewriteCond %{HTTP:Fastly-Client-IP} !. [NV] - RewriteCond %{HTTP_USER_AGENT} "!Amazon CloudFront" - RewriteCond %{HTTP_USER_AGENT} "!check_http" - <% if scope.function_onion_global_service_hostname(['security.debian.org']) -%> - RewriteCond %{HTTP_HOST} "!=<%= scope.function_onion_global_service_hostname(['security.debian.org']) %>" - <% end %> - RewriteRule ^/debian-security/(pool/updates/main/l/linux/.*) http://security-cdn.debian.org/$1 [L,R=302] + RewriteCond %{REQUEST_URI} "!=/_health" + RewriteRule ^/(.*) http://security-cdn.debian.org/$1 [L,R=302] - CustomLog /var/log/apache2/security.debian.org-access.log privacy + CustomLog /var/log/apache2/security.debian.org-access.log combined ServerSignature On