Forum Discussion
Refine iRule with external class file
Thanks
when HTTP_REQUEST {
set SITE [lindex [split [string tolower [HTTP::uri]] "/"] 1]
if {[matchclass $SITE equals $::DRUPALSITES]}{
pool DRUPAL
}
elseif {[matchclass $SITE equals $::WPS2]}{
pool WEBNODE
}
else {
log local0. "Requested URL does not match any class: [HTTP::uri], defaulting to pool WEBNODE"
pool WEBNODE
}
}
The biggest problem I found was the external file format, although there are many examples no are specific on how the structure interacts with the iRule
using nano editor
"word", is what I need for the equals variable.
"/word," is fine for contains or starts_with variable.
"word":="key1" which is the b class format works but no one at F5 support could explain the the "key1" variable. And honestly, it is faster for me just to use the nano editor vs the b class format.
Thanks for everyone's help.
Chung
Recent Discussions
Related Content
* 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