Can HAProxy respond with a specific sub domain that represents a backend server?

view full story

http://serverfault.com – Say someone makes a http get/post request to api.example.com/a/b Now say I have 10 servers setup as my backend servers. I want ha proxy to act as a load balancer and during the request handshake respond with: apiX.example.com/a/b where X is a number in the range 1..10 If haproxy isn't the right tool for this, what would you suggest? What benefits to hardware based load balancers offer? (HowTos)