Hello,
Here's the scenario:
Load Balancer in NSX-V (6.3.5) is running a simple VIP for https://my.company.com to simply redirect to https://a-remote.company.com which is outside of our datacenter. What we were doing before on our F5s was doing a URL Rewrite so that to the end user, even after the redirect, they never saw the REMOTE URL. We always preserved the original request URL.
Within NSX-V, we cannot seem to get specific methods that are typical to HAProxy to work in the Application Rules. Specifically, we are attempting to use the `http-response` methods to capture the Location in the HTTP Headers, and doing a CURL, we have been unable to see the rewrite taking place.
I'm trying to find a document, or ANYTHING that is authoritative in what's supported for the ESG Load Balancers in terms of the backend HAProxy functions and methods. Or, if anyone knows how to do this, that would be awesome. I really don't want to have to stand up NGINX VM's that actually do the Rewrite....
Kindly refer to NSX-v 6.4 - Load Balancing capabilities + configuration examples (and more...) Slide 101 and 70(http->https)
It looks as though this reply has a solution for the url header rewrites.
however it is worth noting that HAproxy is unable to rewrite URLs contained in the response body returned.
I briefly looked at this for some of our estates, running a vanilla HAproxy build on linux, and determined the easiest way was to run NGINX to perform the rewrites to the response body.