Forum Discussion
Guilherme
Nimbostratus
Feb 18, 2020Help with irule structure
Hi sirs, I just wrote a rule that reads a specific HTTP header and saves it to USER_COD and if it has an empty value or PRINT value it should forward the connection to a certain pool, if the this va...
iaine
Nacreous
Feb 19, 2020hi
so if you wanted to use a data group, then the code would look something like...
when HTTP_REQUEST {
set app_pool [class match -value -- [HTTP::header value "USER_COD"] eq cod_value]
if {$app_pool ne ""} {
pool $app_pool
} else {
pool default_pool
}
}...where cod_value is the name of the data group
ltm data-group internal /Common/cod_value {
records {
DG_01 {
data Pool_01
}
}
type string
}
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
