I'd like to migrate some 100+ sites from one server to another. Current plan is to gradually add an acl for each as they are moved to direct traffic to a new server.
Here is a simplified example
front http_frontend bind *:80 acl is_new hdr_end(host) -i sub1.domain.com acl is_new hdr_end(host) -i sub2.domain.com acl is_new hdr_end(host) -i www.domain2.com mode http # etc use_backend web1 if is_new default_backend legacy1
Once they are all moved we'd change the
Is there a way to read these acls from another file? Or to read the domains from a file - perhaps something like this?
acl is_new hdr_end(host) -i /path/to/file
For instance, I include all the secure certificates as below, something like that'd be great!
bind *:443 ssl crt /etc/haproxy/certs.d
It's not the end of the world if not, it'd just be nice and tidy :).