Forum Discussion
anuj_2931
Nimbostratus
Nov 28, 2012Change 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 ...
What_Lies_Bene1
Cirrostratus
Nov 28, 2012I think you've missed quotation marks around the new path. I've added some logging too;
when HTTP_REQUEST {
if { [string tolower [HTTP::path]] equals "/app-a/index.php" } {
log local0. "Matched HTTP path of /app-a/index.php"
HTTP::path "/app-xyz/some-more/index.php"
log local0. "Replaced path"
HTTP::header replace Host "www.xyz.com"
log local0. "Replaced host"
}
}
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects