Forum Discussion
oscarnet_69487
Mar 29, 2017Nimbostratus
HI
you can try this
code
when CLIENT_ACCEPTED {
Save the name of the VIP's default pool
set default_pool [LB::server pool]
}
when HTTP_REQUEST {
if { ([string tolower [HTTP::uri]] contains "/123/") } {
pool POOL_A
}
elseif {([string tolower [HTTP::uri]] contains "/456/") } {
pool POOL_B
}
else {
pool $default_pool
}
}
have a good day!