Forum Discussion
Deepak_Nair
Cirrus
Jan 20, 2021HTTPS REDIRECTION : Specific NODE using iRULE
Hi Experts , i am working on one requirement where i need to redirect https://www.example.com needs to redirect to specific NODES ( 8 nos ) based on URI PATH . i have created a layer 7 virtua...
Jan 22, 2021
Hi Deepak,
It is ok, that is what devcentral is also for. To help.
Ok, so you need code to strip off a part of the uri.
Use this:
when HTTP_REQUEST {
if {([string tolower [HTTP::host]] equals "test-esb-vip-bma.bhp.com") && [HTTP::uri] starts_with "/cts" } {
HTTP::header replace "Host" "10.30.230.15:4515"
HTTP::uri [string map [list "/cts" "" ] [HTTP::uri]]
node 10.30.230.15 4515
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
