X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Froles%2Ftemplates%2Fapache-ftp.debian.org.erb;h=8f942ec997f7d92d04d6a3dd22608655257ef3ed;hb=70091d4278b3b614652c8ef99dc692e89bc28967;hp=d448739c9953a101014b7eea35eb5c8f492381fd;hpb=48908338734a85831696849f15ae9f1019358648;p=mirror%2Fdsa-puppet.git diff --git a/modules/roles/templates/apache-ftp.debian.org.erb b/modules/roles/templates/apache-ftp.debian.org.erb index d448739c9..8f942ec99 100644 --- a/modules/roles/templates/apache-ftp.debian.org.erb +++ b/modules/roles/templates/apache-ftp.debian.org.erb @@ -3,20 +3,30 @@ ## 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 ServerName ftp.debian.org + ServerAlias debian.anycast-test.mirrors.debian.org <% if scope.function_onion_global_service_hostname(['ftp.debian.org']) -%> ServerAlias <%= scope.function_onion_global_service_hostname(['ftp.debian.org']) %> <% end %> + ServerAlias debian.backend.mirrors.debian.org + ServerAlias *.debian.backend.mirrors.debian.org + + AddCharset UTF-8 .txt RedirectMatch "^/$" /debian/ - Alias /debian/ <%= archive_root %>/ + RedirectMatch "^/debian$" /debian/ + Alias /debian/ <%= @archive_root %>/ + Alias /_health /run/dsa-mirror-health-ftp/health + + Require all granted + ErrorLog /var/log/apache2/ftp.debian.org-error.log CustomLog /var/log/apache2/ftp.debian.org-access.log privacy - Use ftp-archive <%= archive_root %> + Use ftp-archive <%= @archive_root %> UserDir disabled