Forum Discussion
Jagadeesh
Altostratus
Sep 27, 2023what is the Pool limit to do URI redirection using irule
I have a VCMP guest LTM virtual box with 1 Core running on BIG-IP 15.1.9.1 Build 0.0.5 Point Release 1 I have a requirement , With Single VIP listening on Port 443 and selecting the pool using iRule...
Jagadeesh
Altostratus
Oct 05, 2023Hi ,
May i know if i can create a VIP with out default pool and do redirection based on uri to specific pool using LTM Policies and datagroups ? and May i know what happens when the condition fails ? Is there a a way we can return a generic error or response if the condition fails?
Thanks and Regards ,
Jagadeesh
Paulius
MVP
Oct 05, 2023Jagadeesh You absolutely can and it would be the following.
when HTTP_REQUEST priority 500 {
set URI [string tolower [HTTP::uri]]
if { [class match -- ${URI} eq CLASS-URI-TO-POOL] } {
set TEMP_POOL [class match -- -value $URI eq CLASS-URI-TO-POOL]
pool ${TEMP_URI}
} else {
HTTP::respond 400 content "Bad Request page" "Content-Type" "text/html"
return
}
}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