HAProxy Enterprise Documentation 2.0r1

show acl

List all ACLs defined in the configuration.

Description

Use show acl to list all ACLs defined in the configuration.

Examples

In this example, we start with the following ACL expression in the configuration, which checks whether the requested URL path begins with /images/:

frontend www
   bind :80
   acl static_url path -i -m beg /static/ /images/
  1. Display a list of defined ACLs by calling show acl:

    $ echo "show acl" | \
       sudo socat stdio unix-connect:/var/run/hapee-2.0/hapee-lb.sock
    # id (file) description
    0 () acl 'path' file '/etc/hapee-2.0/hapee-lb.cfg' line 51
  2. Display ACL details by calling show acl. You can refer to the acl file using either the path or the ID. Here we use the ID.

    $ echo "show acl #0" | \
       sudo socat stdio unix-connect:/var/run/hapee-2.0/hapee-lb.sock
    0x563d5dcc3fb0 /static/
    0x563d5dcc40a0 /images/

See also


Next up

show activity