Forum Discussion
TJ_Vreugdenhil
Jun 28, 2017Cirrus
irule to match on 2nd parameter name and value
I want to capture on the 2nd parameter name and value. If memid=x then send to this node. However, the irule is only matching the tokenid portion. But I can only get it to match on tokenId (the first...
Stanislas_Piro2
Jun 28, 2017Cumulonimbus
Hi,
you can use this irule:
when HTTP_REQUEST {
switch [string tolower [URI::query [HTTP::uri] memid]] {
"1" { node 1.1.1.1] }
"2" { node 2.2.2.2] }
"3" { node 3.3.3.3] }
"4" { node 4.4.4.4] }
"5" { node 5.5.5.5] }
default { pool p80_pool }
}
log local0. "Sending HTTP path [HTTP::query] to node [LB::server addr]"
}
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