010-security.debian.org.conf: explicitly bind to localhost
authorAurelien Jarno <aurelien@aurel32.net>
Sat, 22 Jun 2019 19:02:45 +0000 (21:02 +0200)
committerAurelien Jarno <aurelien@aurel32.net>
Sat, 22 Jun 2019 19:02:45 +0000 (21:02 +0200)
commit955db7615e417fc4f8864ec059b7e0aef79d89f5
treeeab9041ad63c37a158a111da774d4668eb6af96a
parent5b999b7f38f35f6dcd88090bf2b92c57a1d81e57
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
  <VirtualHost 217.196.149.234:80 [2a02:16a8:dc41:100::234]:80>

010-debug.mirrors.debian.org.conf
  <VirtualHost 217.196.149.232:80 [2a02:16a8:dc41:100::232]:80 127.0.0.1:80 [::1]:80 >

010-ftp.debian.org.conf
  <VirtualHost 217.196.149.232:80 [2a02:16a8:dc41:100::232]:80 127.0.0.1:80 [::1]:80 >

010-security.debian.org.conf
  <VirtualHost *:80>

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.
modules/roles/templates/security_mirror/security.debian.org.erb