As debian.mirrors.d.o gets checked by the health checker, explicitly listen on localhost
[mirror/dsa-puppet.git] / modules / roles / templates / apache-ftp.debian.org.erb
index 534c8b1..8f942ec 100644 (file)
@@ -3,7 +3,7 @@
 ## USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git
 ##
 
-<VirtualHost <%= @vhost_listen %>>
+<VirtualHost <%= @vhost_listen %> 127.0.0.1:80 [::1]:80 >
        ServerAdmin debian-admin@debian.org
        ServerName ftp.debian.org
        ServerAlias debian.anycast-test.mirrors.debian.org
        AddCharset UTF-8 .txt
 
        RedirectMatch "^/$" /debian/
+       RedirectMatch "^/debian$" /debian/
        Alias /debian/ <%= @archive_root %>/
+       Alias /_health /run/dsa-mirror-health-ftp/health
+       <Directory /run/dsa-mirror-health-ftp/>
+               Require all granted
+       </Directory>
 
        ErrorLog /var/log/apache2/ftp.debian.org-error.log
        CustomLog /var/log/apache2/ftp.debian.org-access.log privacy