Haproxy rewrite host but send original one to servers?

view full story

http://serverfault.com – Currently, I have nginx > 25 x nginx + fcgi The main nginx, does the load balancing and each virtualhost listens to a different ip (different products). some of the ips receive different hostnames, and they get rewritten back to the backend servers like: ... http://some-random-url.com/path GET /path HTTP/1.1 Host: app1 X-Original-Host: some-random-url.com X-Forwarded-For: .... We're currently replacing the main proxy with haproxy (better load balancing algorithms) but I can't figure out how to append the original host. (I can't find any documentatio (HowTos)