Include backend name/ip in response headers in haproxy
You can use the cookie function to add the serverid into your response. For example:
cookie SERVERID insert indirect
server webA 192.168.1.11:80 cookie A check
This will insert a cookie called SERVERID=A
into the HTTP headers.