Forum Discussion
Sanal_Babu
Altostratus
Oct 12, 2017iRule for pool redirection based on uri
Pool AAA
member x.x.x.x port 80
Pool BBB
member y.y.y.y port 8443
Pool CCC
member x.x.x.x port 8080
Request for projects.com has to be redirected to Pool AAA
Request for x...
Faruk_AYDIN
Altostratus
Oct 15, 2017Hi Guy,
Ross's answer is correct, but there is a mistake. You must delete the blank in "xyz. projects.com". Corrected version is:when HTTP_REQUEST {
switch -glob [string tolower [HTTP::host]] {
"projects.com" { pool AAA }
"xyz.projects.com" {pool BBB}
"sss.xyz.projects.com" { pool CCC }
}
}
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
