Forum Discussion
Brian_Deitch_11
Nov 29, 2012Historic F5 Account
Let's see if this will work, I'm have a little trouble understanding the request:
when HTTP_REQUEST {
if {([HTTP::header exists "X-Forwarded-For"]) and ([string tolower [HTTP::uri]] contains "/wf/hp.me")} {
switch -glob [HTTP::header values "X-Forwarded-For"] {
"10.0*" {
HTTP::redirect "http://www.test.com/WF/H.me"
}
}
}
if { ([IP::addr [IP::client_addr]/16 equals 10.3.0.0]) and ([string tolower [HTTP::path]] starts_with "/wf"} {
HTTP::header insert X-Forwarded-For [IP::remote_addr]
HTTP::redirect "http://www.test.com/WF?sr=new"
}
if {[string tolower [HTTP::path]] starts_with "/wf"} {
pool Pool2
}
}