Forum Discussion
Yazan_Khader
Nimbostratus
Nov 24, 2013URI and Host replace
hi ,
I need to do the following :
when user request : https://a.x.com/retail
F5 will change it to : http://b.x.com:9081/portal when forwarding the request to the pool...
Kevin_Stewart
Employee
Nov 24, 2013Try this:
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::uri]] {
"/retail*" {
pool Pool-A
HTTP::header replace Host "b.x.com:9081"
HTTP::uri "/portal"
}
"/corporate*" {
pool Pool-B
HTTP::header replace Host "b.x.com:9082"
HTTP::uri "/portal"
}
default {
reject
}
}
}
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