Quantcast
Channel: HAProxy community - Latest topics
Viewing all articles
Browse latest Browse all 4740

How to concatenate parts to a mapping key

$
0
0

@jurgenhaas wrote:

I’m using the map feature to redirect from one path to another looking up a list in an external file. This is how that work:

http-request redirect code 301 location %[capture.req.uri,map(/etc/haproxy/my.map)] if { capture.req.uri,map(/etc/haproxy/my.map) -m found }

Now I need to enhance that such that the key which is capture.req.uri in the above example will now be the domain AND the path so I wonder how I could concatenate those 2 parts (hdr(host) and capture.req.uri) into one string to work as the key for the lookups.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4740

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>