Brad R asked:
We’re int he process of migrating from nginx to HAProxy and one of my redirects needs to point a certain URL to an external server, but we also need to maintain that original URL in the address bar. I’ve tried numerous things with http-request and https-response, but I always end up showing the external site in the browser.
The below config is working in nginx for the wanted behavior. Can anyone help me out with my backend in HAProxy to mimic this result?
HAProxy does not provide any functionality to alter HTTP response bodies. It is not really a web server, either, but a load balancer. If you need this functionality you should continue to use nginx.
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.