Forum Discussion
Stanislas_Piro2
Sep 03, 2015Cumulonimbus
Hi,
in the irule, create a else statement with default pool assignment. if there is no default pool assignment, and the user browse first to /uri1 then to /uri2 in the same TCP connection, the second request will be assigned to the previous pool.
When CLIENT_ACCEPTED {
set default_pool [LB::server pool]
}
when HTTP_REQUEST {
if { [string tolower [HTTP::host]] equals "host1.internet.com" } {
if { [string tolower [HTTP::uri]] starts_with "/uri1" } {
pool pool_X
} else { pool $default_pool}
}
}