anuj_2931
Nov 28, 2012Nimbostratus
Change http host and path (reverse proxy) without redirecting the client
Hi Guys,
There is a business need where our clients will go to http://www.abc.com/app-a/index.php. I want my f5 to forward that request to http://www.xyz.com/app-xyz/some-more/index.php
I do not want the clients to see this in their browser hence want to simulate reverse proxy. I tried this,
when HTTP_REQUEST {
if { [string tolower [HTTP::path]] equals "/app-a/index.php" } {
HTTP::path /app-xyz/some-more/index.php
HTTP::header replace Host "www.xyz.com"
}
}
But this isn't working. I know how redirect works and I could do that with this case but unfortunately that isn't an option.
Appreciate your help.
Anuj