Forum Discussion
Shavat_Zalpuri
Nimbostratus
Jan 26, 2021iRule not working
Hi All, I have a scenerio where i have a vip on which we have applied iRule stating that if url mention "abc-test" it should hit to different server and if url mentions "abc-dr" it should hit to ...
Jan 26, 2021
Hi Shavat,
Uri starts with "/".
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::uri]] {
"/abc-test*" { pool abc-test }
"/abc-dr*" { pool abc-dr }
}
}or
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::uri]] {
"*abc-test*" { pool abc-test }
"*abc-dr*" { pool abc-dr }
}
}- Shavat_ZalpuriJan 26, 2021
Nimbostratus
Hi Enes,
Thank you for replying me.
So if i will apply ""/" or "*" , format of my iRule is correct and it should work .
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
