Peter_Bevington
Feb 14, 2012Nimbostratus
Redirection
Not been iRuling for very long
I have a requirement to redirect traffic from to
I don't want to use HTTP::redirect as this will create more traffic and would like to redirect to a pool
I'm doing the following but am finding that the "new-pool' isn't being used
switch -glob [string tolower [HTTP::host]] {
"server1*" {
HTTP::header replace Host $spr_site
switch -glob [string tolower [HTTP::uri]] {
"/" {
HTTP::uri "NEW-URI"
}
}
pool "New-Pool"
}
}
Anyone have any help or advice ?
Thanks