# Error on acl and backend

**URL:** <https://discourse.haproxy.org/t/error-on-acl-and-backend/9313>\
**Category:** Configuration Samples\
**Created:** [December 12, 2023, 3:42pm UTC](https://discourse.haproxy.org/t/error-on-acl-and-backend/9313 "2023-12-12T15:42:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![malvivent7](https://avatars.discourse-cdn.com/v4/letter/m/eb8c5e/32.png) [@malvivent7](https://discourse.haproxy.org/u/malvivent7)\
**Post date:** [December 12, 2023, 3:42pm UTC](https://discourse.haproxy.org/t/error-on-acl-and-backend/9313/1 "2023-12-12T15:42:20Z")

</div>

Hi to all, i have an installation of HAproxy 2.4.22 on ubuntu 22.04LTS (package from distro rep) i succesfuly deployed on production this installation with maps for choosing backend based on host from the request… now i have implemented an acl based on src file

```auto
    log global
    acl whitelist src -f /etc/haproxy/maps/ip_auth.lst
    option http-ignore-probes
    mode http

```

and then i put the code for the map file if whitelist else another map file

```auto
use_backend %[base,map_beg(/etc/haproxy/maps/multi-host-qrweb.map)] if whitelist
use_backend %[req.hdr(host),lower,map_reg(/etc/haproxy/maps/multi-host.map)]

```

This config dosent play well the ACL is correctly triggered (i can see the acl apllied in the log) but the map is ignored. Someone could help me explaining why dosent work? for me it seem correct. Thanks in advance.
