Forum Discussion
Allan_66523
Dec 08, 2011Nimbostratus
redirect 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
Dec 08, 2011Cirrostratus
Hi 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
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