Ashu_2116
Sep 07, 2018Nimbostratus
Help with i-rule
Hi Can someone please help me with a i-rule requirement? Requirement: The default url https://www.abc.com goes to it defualt server pool. but If the uri is /helloworld then it goes to a different server pool. My i-rule below does not seem to working correctly. All the requests are going to HelloWorld pool.
when HTTP_REQUEST { set uri [string tolower [HTTP::uri]] switch -glob $uri { "/HelloWorld" { pool pool_www.abc.com_HelloWorld } “” { pool pool_www.abc.com_default.
}
} }