Mar 12, 2015
BIG-IP : expected behavior of redirects in irule stack
F5 BIG-IP Virtual Edition v11.4.1 (Build 635.0) LTM on ESXi
My virtual-server has an iRule stack. In the top-level iRule ( highest-priority, lowest numerical priority), under certain conditions I set the destination pool and perform redirects ( 301 302 ) :
"mysite.com" {
pool mysite.com-pool-01
}
"mysite.co.uk" {
HTTP::respond 301 Location "http://www.mysite.co.uk[HTTP::uri]"
}
"www.mysite.com.mx" {
HTTP::redirect "http://www.mysite.com/default.aspx?c=6"
}
I know that destination pool can be reset in subsequent iRules -- and so final route might be to a different pool.
But what is expected behavior with respect to redirects ? Once
HTTP::redirect
or HTTP::respond
is issued, is this route immediately acted upon ? ( i.e. no further iRule processing occurs ) Or is it possible that subsequent iRule could effect a different response ?