# Share acl across frontends / backends

**URL:** <https://discourse.haproxy.org/t/share-acl-across-frontends-backends/6016>\
**Category:** Help!\
**Created:** [December 10, 2020, 8:04pm UTC](https://discourse.haproxy.org/t/share-acl-across-frontends-backends/6016 "2020-12-10T20:04:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rfraile](https://avatars.discourse-cdn.com/v4/letter/r/50afbb/32.png) [@Rfraile](https://discourse.haproxy.org/u/Rfraile)\
**Post date:** [December 10, 2020, 8:04pm UTC](https://discourse.haproxy.org/t/share-acl-across-frontends-backends/6016/1 "2020-12-10T20:04:52Z")

</div>

In a configuration that share the same acl across all the frontends and backends like this example one:

```
frontend front1
        ...
        acl static1 path_end .jpg .gif .png .js .css .svg
        http-request ... if static1
        ...
backend back1
        ...
        acl static1 path_end .jpg .gif .png .js .css .svg
	    ignore-persist if static1
        ...
backend back2
        ...
        acl static1 path_end .jpg .gif .png .js .css .svg
	    ignore-persist if static1
        ...

```

Is there an alternative to avoid define the list of file extensions (in this case) each time?

Thanks,

---

<div class="post-metadata">

**Author:** ![baptiste64](https://avatars.discourse-cdn.com/v4/letter/b/46a35a/32.png) [@baptiste64](https://discourse.haproxy.org/u/baptiste64)\
**Post date:** [December 10, 2020, 10:21pm UTC](https://discourse.haproxy.org/t/share-acl-across-frontends-backends/6016/2 "2020-12-10T22:21:44Z")

</div>

Hi,  
You can load an acl from a file.  
Check the -f flag: [https://cbonte.github.io/haproxy-dconv/2.0/configuration.html#7.1](https://cbonte.github.io/haproxy-dconv/2.0/configuration.html#7.1)
