Forum Discussion
Net_Admin_86160
Nimbostratus
Oct 24, 2012Case Issue
Hello,
In just this section(first elseif below) of the irule I have the "and" condition. But somehow in this section ignore case is not working.
elseif {([HTTP::host] contains "do...
What_Lies_Bene1
Cirrostratus
Oct 24, 2012Wow, that's one long rule! I'd suggest using a Data Group for the host names and another for the URIs. If nothing else you're rule will be faster and easier to read and easier to modify in future (you just add new hosts or URI's to the DGs). Hopefully and possible mistake in your current code will be cleared up with this too.
...
elseif { [class match [string tolower [HTTP::host]] contains host_dg ] } {
use pool XXX
}
elseif { [class match [string tolower [HTTP::uri]] contains uri_dg ] } {
use pool XXX
}
...
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
