Forum Discussion
teguh_wilidarma
Feb 07, 2011Nimbostratus
iRule HTTP redirection - one server multiple instance
Hi, I was digging through this forum and found several similar cases like mine, but I am still very newbie on how iRule commands interact with VS and pool member selection. Moreover, I havent managed ...
hooleylist
Feb 08, 2011Cirrostratus
Hi Sven,
You could use a switch statement. It shouldn't make a big difference, but it's a bit cleaner:
when HTTP_REQUEST {
switch [HTTP::host] {
"front_web" {
if { [string tolower [HHTP::uri]] starts_with "/servlet/livegiverservlet" } {
pool poolname_2025
} else {
pool poolname_2020
}
}
"tr_web" {
if { [string tolower [HHTP::uri]] starts_with "/servlet/livegiverservlet" } {
pool poolname_4025
} else {
pool poolname_4020
}
}
}
}
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