Mohammad_Hossei
Jun 13, 2018Nimbostratus
switch -glob issue with URI tolower string
Hi Guys, I expect this irule to be working for me based on my URI but it is not working. it only supports lowercases and can't detect anything in Capital like Lion or TIGER. Please help if you have any idea.
when HTTP_REQUEST { switch -glob [string tolower [HTTP_uri]] { "/lion" { pool test1 member 1.1.1.1:8080 } "/tiger" { pool test1 member 1.1.1.2:8080 } "/mouse*" { pool test1 member 1.1.1.3:8080 } default { HTTP::redirect "/tiger" } } }