We are migrating a range of webservers into a new farm which will have HaProxy at the front door to route all the traffic inside the farm properly. We already know how to do that as it is similar to 6 other farms that we built that way.
This time we’ll get a huge list of redirects that these guys managed in Apache config files so far. We would like to handle all redirects across hundreds of domains as early as possible and therefore look into best ways to handle them.
We know how tpo do that with ACLs in the haproxy.cfg file for each redirect inndividually. Now, that may end up in a huge file which may not be the most efficient way of doing this. Are there better way of doing this, e.g. some sort of lookup table in e.g. YAML or JSON format?
Or any other suggestions?