Does anyone know what this actually does?
set uri “/[getfield [HTTP::uri] “/” 2]/” HTTP::uri [string map “$uri /” [HTTP::uri]]
I THINK it takes the URI splits it at ‘/’ and takes the second chunk. For example:
/something/somethingelse >>> /somethingelse
Second, how can this be done as a HAProxy ACL? TIA
1 post - 1 participant