通过F5 LTM iRule实现根据URL进行流量分发

说明:将下面的URL请求分发到http_pool,其余请求分发到other_pool

http://abc.com/scoif

http://abc.com/fkif

http://abc.com/SMOEIF

http://abc.com/viewunite

http://abc.com/viewunite2

http://abc.com/bossjb

http://abc.com/serviceinter

http://abc.com/mktuni

http://abc.com/serviceb

http://abc.com/k968888  

when HTTP_REQUEST {
  if { [HTTP::host] eq "abc.com" } {
  if { ([HTTP::uri] starts_with "/scoif") or ([HTTP::uri] starts_with "/fkif") or ([HTTP::uri] starts_with "/SMOEIF") or ([HTTP::uri] starts_with "/viewunite") or ([HTTP::uri] starts_with "/viewunite2") or ([HTTP::uri] starts_with "/bossjb") or ([HTTP::uri] starts_with "/serviceinter") or ([HTTP::uri] starts_with "/mktuni") or ([HTTP::uri] starts_with "/serviceb") or ([HTTP::uri] starts_with "/k968888") } {
     pool http_pool
  } else {
     pool other_pool
 }
}
}


你可能感兴趣的:(流量)