Forum Discussion
Colin_Walker_12
May 04, 2011Historic F5 Account
Try this:
when CLIENT_ACCEPTED {
set httpfunctions 1
if { [IP::client_addr] equals 1.2.3.4 } {
node 192.168.10.10 80
unset httpfunctions
}
}
when HTTP_REQUEST {
if { [info exists httpfunctions]} {
if { [HTTP::host] contains domain1.com {
pool domain1.com_pool
}
elseif { [HTTP::host] contains domain2.com {
pool domain2.com_pool
}
else {
pool domain.com_pool
}
}
}
Basically you want to do an event disable, but only for the context of this iRule, not all the HTTP_REQUEST events in all the iRules. So this should get you there.
Colin