Forum Discussion
Sep 23, 2020
Hi sandman748,
Can you look logs with this:
when HTTP_REQUEST {
if { [HTTP::header exists X-SERVER-POOL] } {
log local0. "X-Server-Pool: [HTTP::header X-SERVER-POOL]"
switch [HTTP::header X-SERVER-POOL] {
"xyz" { pool xyz }
"abc" { pool abc }
}
}
}
If no header exists, it hits the default pool. If no default pool exists, it drops. You can add default pool configuration in iRule with using else or switch.
when HTTP_REQUEST {
if { [HTTP::header exists X-SERVER-POOL] } {
log local0. "X-Server-Pool: [HTTP::header X-SERVER-POOL]"
switch [HTTP::header X-SERVER-POOL] {
"xyz" { pool xyz }
"abc" { pool abc }
default { defaultpool }
}
}
}