On Wed, Jun 3, 2015 at 2:22 PM, David Reuss <shuffle...@gmail.com> wrote:
> Hello,
>
> I have this use_backend declaration:
>
> use_backend
> %[req.hdr(host),lower,map_dom(/etc/haproxy/worker.map,b_nodes_default)]
>
> Which seems to work wonderfully, but say i have "foo.com" in my map, it will
> match foo.com.whatever.com, and ideally i'd like to only match if the domain
> ends with my value (foo.com), and also, it should NOT match blahfoo.com
>
> How would i achieve that?

Hi David,

Then store .foo.com as your map key, then use:
%[req.hdr(host),lower,map_end(/etc/haproxy/worker.map,b_nodes_default)]

Baptiste

Reply via email to