Dear all, I am trying to get haproxy routing to a specific server if a header (with the server nickname) is set.
My first guess was that the following config snipped would do it: backend ... acl force_backend req.hdr(X-Want-Backend) -m found use_server %[req.hdr(X-Want-Backend)] if force_backend But this is rejected by HAproxy (version 1.5.14) unable to find server '%[req.hdr(X-Want-Backend)]' referenced in a 'use-server' rule Can this be done ? I would like to avoid the "long" alternative where each server is explicitly listed. If yes, what happens at run time when a value that doesn't map to a real server is passed in the header ? Thanks ! M -- Michel Blanc { :github => "@leucos", :twitter => "@b9m", :gpg => "0X24B35C22" }