Hi Gizmo,
it might be possible to inject a cookie_name=portnumber on the initial redirect and then use the cookie_value as differentiator for different instances.
iRule for :443
when HTTP_REQUEST {
if { [string tolower [HTTP::uri] starts_with "/xyz/login" } then {
set pool_port [HTTP::cookie value pool_port]
if { $pool_port == 9460 } then {
pool application1
} elseif { $pool_port == 9461 } then {
pool application2
} elseif { $pool_port == 9462 } then {
pool application3
} else {
Default pool or error message
}
} else {
Your redirect code but with additional cookie insert
}
}
Cheers, Kai