use_backend %[req.hdr(host),lower,map_dom(/tmp/haproxy/mapfiles/mapfile.txt,bk_defaultbackend)]
sub.domain.tld bk_subdomain
sub.domain.tld/dir bk_subdomaindir