TNY_122436
May 08, 2014Nimbostratus
iRule redirects causing pool member issues
Hi everyone, I have an iRule that works accordingly to what it was intended to do. The problem is that when the VIP which contains this irule shows the VIP (Green) up when the pool members are actually brought down. I have verified that this irule is causing this weird issue. I had removed the irule and the VIP did go down accordingly. If the irule is applied, the VIP stays up. Does anyone know why this irule is causing this? Here is my setup:
VIP information: Default Pool: Windows_pool
iRule:
Code
when HTTP_REQUEST {
if { not ([HTTP::host] starts_with "www.") } {
HTTP::redirect https://www.[getfield [HTTP::host] ":" 1][HTTP::uri]
}
elseif {[HTTP::uri] starts_with "/ChaptOne/Page1/Blue/" and [HTTP::uri] contains "/HAPPY" and not ([HTTP::uri] contains "/ABC" or [HTTP::uri] contains "/CDE")} {
HTTP::respond 301 location "https://www.mainpage.com/chapter4"
} else {
switch -glob [HTTP::uri] {
"/Sunday*" -
"/Monday*" -
"/Tuesday*" -
"/Wednesday" -
"/Thursday*" {
pool Unix_pool
}
default {
pool Windows_pool
}
}
}
}
Code