Forum Discussion
Ron_130795
Nimbostratus
Jul 15, 2014Irule help with creating a single VIP but with multiple pools
I have a website called 'bigip.com', however, I also have a website call 'bigip.com/blog' and 'bigip.com/application' using the same VIP. Each url needs to point to a different pools. How can I wri...
David_Larsen
Employee
Jul 15, 2014This is how I do what your are looking to do. I updated /blog_ to /blog* and /application_ to /application*.
when HTTP_REQUEST {
Check requested uri header (set to lowercase)
switch -glob [string tolower [HTTP::uri]] {
"/blog*" {
pool bigip2
}
"/application*" {
pool bigip3
}
default {
pool bigip
}
}
}
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