Forum Discussion
Yung_Liu_113940
Feb 06, 2006Nimbostratus
Colin,
I followed unRuley's instruction and modified the iRule (please see below) but I still don't see BigIP sending cookie when URI contain's ip=x.x.x.x. I tried this on both version 9.0 and 9.2 without much success. Any help on this is greatly appreciated.
Thanks,
when HTTP_REQUEST {
set uri [HTTP::uri]
if { $uri contains "ip=" } {
set uri_index [split [HTTP::uri] "/"]
set myserver [string trimleft [lindex $uri_index 1] "/"]
set myserverip [lindex [split $myserver "="] 1]
set newuri [join [lrange $uri_index 2 end]]
HTTP::uri "/$newuri"
pool testpool member $myserverip 80
}
else {
pool testpool
persist none
}
}