i-rule redirection issue
Hi,
I have created a i-rule to redirect the when http host contains siteA, & uri starts with search, sent it to SiteA _3737pool.
if http host contains siteA, & uri has 'sales' or FinanceBuyCatergory' words, it has to send request to pool Finance_443 .
Else send request to default pool SiteA_443.
Kindly check and let me know if i'm doing something wrong in logic. I see the request are not being send to backend pools .
Note: Pool SiteA is attached to VIP where as pool Finance is not attached to VIP and acting a independent pool.
irule:
if { [HTTP::host] eq "SiteA" and ([HTTP::uri] starts_with "/search/") }{
SSL::disable serverside
pool SiteA_3737
}
elseif { [HTTP::host] eq "SiteA" } {
switch -glob [HTTP::uri] {
"*sales*" -
"*FinanceBuyCategory*" {
pool Finance_443
}
}
}
else { pool SiteA_443
}
}