HAProxy manipulate string prior to map lookup
问题 I am pretty new to HAProxy but have the need for what seems like a fairly uncommon requirement. I need to lookup an item in a map based on the host header but I need to apply some string manipulation first. Example: Request comes in for i.domain.com I need to strip off the i. and lookup domain.com in my map. I can do this by creating a new, temp header with the value from the initial request and then replacing that value with some regex like so: http-request set-header X-Temp %[req.hdr(host)]