title: Web application url redirect using Apache or haproxy
body: <p>We have a Java web application with multiple services using http. It's accessible via abc.com ,  Currently reverse proxy and headers are passed through Apache or haproxy. I have tried with rewrite rule / condition on Apache, I was successful in accessing webapp on xyz.com but some functionalities like search are failing as they are using abc.com. We have many CORS, cookies and X headers like X-forwarded-host for switching between services. Is it possible to write successful rewrites on Apache or haproxy which does the needful.
   Thanks in advance.</p>