Forum Discussion
Hannes_Rapp
Oct 04, 2015Nimbostratus
Hello,
If you do not have other HTTP hosts besides 'abc.test.com' serviced via the same Virtual Server, we can make it a bit slimmer. If you have any questions and are uncertain why the code is exactly as it is, let me know and I'll explain
when HTTP_REQUEST {
switch [HTTP::host][string tolower [HTTP::path]] {
"abc.test.com/" {
HTTP::path "/test1"
pool pool-1111
}
"abc.test.com/test1" -
"abc.test.com/test1/" {
pool pool-1111
}
"abc.test.com/test2" -
"abc.test.com/test2/" {
pool pool-2222
} default {
pool MyDefaultPool
}
}
}
- mb_shankr_22532Oct 04, 2015NimbostratusI do not have other HTTP hosts besides 'abc.test.com' serviced via the same Virtual Server