Source: dltlabs.medium.com

How to Remove HAProxy ACLs Using Maps
In this article, we will learn how to remove Access Control Lists (or ACLs in short) using maps for selecting a backend based on a request parameter. The advantage of using maps instead of ACLs is that sometimes it might be easier to update the mapping rather than the ACL.

Before showing the example of the map we need at least one map file, so below is the map file that we are using in our map example.

This is the map file that we are using in use_backend.

Using HAProxy maps we are able to simplify the usage of ACLs in our configuration.

Related Articles