URL Rewrite Reverse Proxy
Hello,
I'm using the rewrite iRule below to reverse proxy traffic to a server hosted by a third party. This third party hosts a service one of our applications makes a call to.
We need to make the service available externally so it can be used by SalesForce, so I created a VIP using an IP address in our external range and worked with the third party to open port 80 in their firewall in order to talk to the server hosting the web service.
The rewrite iRule seems to be working, however POST calls made back from the app server seem to be failing with a 400 response.
Is there away to preserve or enforce the rewrite for the calls being made back from the app server?
iRule: when HTTP_REQUEST { HTTP::header replace Host [string map {my.externalvip.com thirdparty.webservice.com} [string tolower [HTTP::host]]] }