From: Aurelien Jarno Date: Sat, 22 Jun 2019 19:02:45 +0000 (+0200) Subject: 010-security.debian.org.conf: explicitly bind to localhost X-Git-Url: https://git.adam-barratt.org.uk/?p=mirror%2Fdsa-puppet.git;a=commitdiff_plain;h=955db7615e417fc4f8864ec059b7e0aef79d89f5 010-security.debian.org.conf: explicitly bind to localhost On hosts having services on different IP addresses, *:80 is not enough to run the security vhost on localhost, as other services might also explicitly bind to localhost. This breaks mirror-health check. For example on schmelzer.d.o: 010-archive.debian.org.conf 010-debug.mirrors.debian.org.conf 010-ftp.debian.org.conf 010-security.debian.org.conf Without this fix, it means that a request to security.backend.mirrors.d.o on localhost ends up in the debug.mirrors.d.o vhost, and is thus answered as 404. --- diff --git a/modules/roles/templates/security_mirror/security.debian.org.erb b/modules/roles/templates/security_mirror/security.debian.org.erb index 7d56aeca9..917732741 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 ## - + ServerAdmin debian-admin@debian.org DocumentRoot /srv/mirrors/debian-security ServerPath /debian-security