Forum Discussion
Arie
Jun 18, 2014Altostratus
If you select a pool via an iRule there's no need to configure a default pool. A drawback is that you can't readily tell whether a VIP is up or down since it doesn't have any pool members.
As for your iRule, it will do an exact match of "/outpool" and "/inpool". My guess is that you'll want to select pools based on the beginning of the path. You can do that by adding an asterisk (*) at the end of the string.
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::uri]] {
"/outpool*" {
pool outpool_7001_Pool
}
"/Inpool*" {
pool Inpool_7003_Pool
}
}
}