Pramod_Gopala_1
Sep 15, 2015Nimbostratus
Single Virtual Server with Multiple Pools for different URL context
Hi All,
At our client site, we need to create a virtual server with multiple pools for different URL contexts. Below is the iRule written for the virtual server:
when HTTP_REQUEST {
if {[string tolower [HTTP::host]] starts_with "www.companyname.net"}
{
switch -glob [string tolower [HTTP::uri]] {
"/portal/*" { pool portal-poolname }
"/ptstest/*" { pool ptstest-poolname }
"/pooltest*" { pool pooltest-poolname }
"/mob/*" { pool MOB-poolname }
"/code*" { pool CODE-poolname }
"/iplc*" { pool ipl-poolname }
}
}
When I use the above iRule in the Virtual Server created we are unable to access. But, if I use choose individual pool without using the iRule pool members are accessible.
Please let me know is there any changes required in the iRule or do we need to check any other configurations and settings in the Virtual Server.
Thanks in Advance!