In this example config, is it possible to insert a custom response
header, say "X-Backend-Server", with the value of "www1" or "www2"
depending on which server HAProxy routed to? This would be primarily
for trouble-shooting purposes. For example, if we suspect that the
deploy is broken on just one of the web servers.

frontend http
        bind 0.0.0.0:80
        default_backend www

backend www
        balance roundrobin
        server  www1 10.177.1.81:80
        server  www2 10.177.1.45:80

I found a similar question posted here:
http://serverfault.com/questions/215183/include-backend-name-ip-in-response-headers-in-haproxy

   -Chase

Reply via email to