Forum Discussion
sandy16
Nov 09, 2012Altostratus
Lastly, This is how my irule looks like - BUT the VIP is showing down as I do not have a default pool configured on it. Also the vip is displaying a blank webpage when opened instead of sending the http response 200.
when HTTP_REQUEST {
if {[HTTP::uri] contains "/dev"} {
pool dev-pool
if {[HTTP::uri] contains "/qa"} {
pool qa-pool
if {[HTTP::uri] contains "/uat"} {
pool uat-pool
}
}
}
else {
HTTP::respond 200 contains "Please use /dev to go to the dev-webserivces-proxies, /qa to go to the qa-webserivces-proxies, /uat to go to the uat-webserivces-proxies"
}
}