Forum Discussion
Gill_32697
Nimbostratus
Dec 06, 2013irule redirect by url.
I will be implementing the irule below, will it do what im needing, it did pass irule editor. what im needing to do is rediect to different pools based on the url header. We will have different publi...
Kevin_Stewart
Employee
Dec 06, 2013You're technically correct, but I would put the switch conditions inside double quotes.
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::host]] {
"a-mysite.zcorp.com" {
pool a-mysite-pool
}
"b-mysite.zcorp.com" {
pool b-mysite-pool
}
"c-mysite.zcorp.com" {
pool c-mysite-pool
}
"b-mysite.zcorp.com" {
pool d-mysite-pool
}
"e-mysite.zcorp.com" {
pool e-mysite-pool
}
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