Forum Discussion
A__N_5261
Nimbostratus
Apr 15, 2014Modify the IRULE
Hi,
We have already below IRULE for one of virtual server. Recently requirement we want to add some line in IRULE when LB see url with "/disk/disk.xml" it should drop
when HTTP_REQUEST { Pool name set thirdpool "pool3" set forthpool "pool4" set secondpool "pool2" set firstpool "pool1"
switch -glob [string tolower [HTTP::uri]] {
"/abcfirst*"
{
pool $firstpool
}
"/_site*" -
"//_site*"
{
persist cookie insert "SessMgt"
pool $secondpool
}
"/us-home*" -
"//us-home*"
{
persist cookie insert "SessMgt"
pool $thirdpool
}
"/blog*" -
"//blog*"
default {
persist cookie insert "SessMgt"
pool $forthpool
}
}
}
2 Replies
- Cory_50405
Noctilucent
This should work for you:
when HTTP_REQUEST { Pool name set thirdpool "pool3" set forthpool "pool4" set secondpool "pool2" set firstpool "pool1" switch -glob [string tolower [HTTP::uri]] { "/disk/disk.xml*" { reject } "/abcfirst*" { pool $firstpool } "/_site*" - "//_site*" { persist cookie insert "SessMgt" pool $secondpool } "/us-home*" - "//us-home*" { persist cookie insert "SessMgt" pool $thirdpool } default { persist cookie insert "SessMgt" pool $forthpool } } } - A__N_5261
Nimbostratus
Thanks cory for reply
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
