Dmitry Yu Okunev 4 years ago
parent
commit
3f24cb915c
1 changed files with 2 additions and 1 deletions
  1. 2 1
      reload-instance-list.sh

+ 2 - 1
reload-instance-list.sh

@@ -85,10 +85,11 @@ for LINE in ${CURRENT_INSTANCES[@]}; do
 	IP="${WORDS[1]}"
 
 	cat >> /etc/haproxy/gen-conf.d/050-frontends.conf <<EOF
-	acl host_${ID}_internal hdr(host) -i ${ID}.${ZONE}
 	acl host_${ID}_internal hdr(host) -i ${ID}.${ZONE_PUBLIC}
 	use_backend backend_${ID}_internal if host_${ID}_internal
 EOF
+	#acl host_${ID}_internal hdr(host) -i ${ID}.${ZONE}
+
 	cat >> /etc/haproxy/gen-conf.d/060-backends.conf <<EOF
 backend backend_${ID}_internal
 	mode http