Forum Discussion
Brian_Mayer_841
Nimbostratus
Mar 04, 2008Redirect to specific pool based on URI pattern
Hey all,
I'm searching the forums for some help and haven't quite found what I'm looking for just yet. We need to redirect VS requests that match "pageid" in the URI to a different server pool. I found this snippet to use for redirection to a specific pool member, but I only need to redirect to the whole pool:
when HTTP_REQUEST {
set pool_member [findstr [HTTP:uri] "?" 1]
pool member $pool_member
}
What must I change to make redirect work to whole pool, rather than a member?
Thanks!
B
3 Replies
- Nicolas_Menant
Employee
Hi, - Brian_Mayer_841
Nimbostratus
I'll give it a shot...to be honest, I'm new to iRules and really don't quite have the syntax down just yet. I've spent time on the Wikis but I'm still a newb. Thanks for the help. - hoolio
Cirrostratus
It might also be good to handle requests where the parsed pageid doesn't equate to a valid pool. You can do this using the 'catch' command (Click here). You might also want to check that the pool has active members using the active_members command (Click here).
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