X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Froles%2Ftemplates%2Fapache-ftp.ports.debian.org.erb;h=82bac2357c4c0bcedc35ab88ecd9e0438d28fd3f;hb=4bb48877971815cfb15bc52803bd4c5f0b5f34e4;hp=d6328bdd467ff021df24d2e3647efa7ecfa6c3c0;hpb=65139996ecd9fed4bb7498e6ac9e73fdaa6920ac;p=mirror%2Fdsa-puppet.git diff --git a/modules/roles/templates/apache-ftp.ports.debian.org.erb b/modules/roles/templates/apache-ftp.ports.debian.org.erb index d6328bdd4..82bac2357 100644 --- a/modules/roles/templates/apache-ftp.ports.debian.org.erb +++ b/modules/roles/templates/apache-ftp.ports.debian.org.erb @@ -3,23 +3,25 @@ ## USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git ## - > - ServerAdmin debian-admin@debian.org - ServerName ftp.ports.debian.org + > + ServerAdmin debian-admin@debian.org + ServerName ftp.ports.debian.org + <% if scope.function_onion_global_service_hostname(['ftp.ports.debian.org']) -%> + ServerAlias <%= scope.function_onion_global_service_hostname(['ftp.ports.debian.org']) %> + <% end %> - RedirectMatch "^/$" /debian-ports/ - Alias /debian-ports /srv/mirrors/debian-ports + ErrorLog /var/log/apache2/ftp.ports.debian.org-error.log + CustomLog /var/log/apache2/ftp.ports.debian.org-access.log privacy - ErrorLog /var/log/apache2/ftp.ports.debian.org-error.log - LogLevel warn - CustomLog /var/log/apache2/ftp.ports.debian.org-access.log privacy + RedirectMatch "^/$" /debian-ports/ - - Require all granted - IndexOptions NameWidth=* +SuppressDescription - Options +Indexes - Options +FollowSymLinks - - + Alias /debian-ports <%= @archive_root %> + Use ftp-archive <%= @archive_root %> + RedirectMatch "^/debian-ports-cd/.*$" https://cdimage.debian.org/cdimage/ports/ + + UserDir disabled + + +# vim:set syn=apache: