Forum Discussion
Allan_66523
Nimbostratus
Dec 08, 2011redirect url to another pool
I would like to have 1 vip for about 50 virtual web nodes. I would like the irule to look at the url and direct it to the correct pool. Can someone help me with this?
Thanks
hoolio
Cirrostratus
Dec 08, 2011Hi Allan,
That looks good. Just change HTTP::uri to HTTP::host and replace the leading { with a [:
when HTTP_REQUEST {
switch [string tolower [HTTP::host]] {
"test.xzy.com" { pool test_pool }
"hello.xzy.com" { pool hello_pool }
"data.xzy.com" {pool data_pool }
default { pool default_pool}
}
}
Aaron
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
