Forum Discussion
Natalia_Wolosec
Aug 01, 2011Nimbostratus
Irule for rerouting to different pools
Hi All,
I currently have an in production virtual server on my F5 which also has a SSL certification. My organisation would like to be able to use the same URL to take advantage of the certi...
Pconlan_71037
Aug 01, 2011Altocumulus
I use yet another variation similar to what Peter and Bhattman suggested:
switch -glob [string tolower [HTTP::path]]
{
"/test*" -
"/another_url_that_shouldnt_be_live/index.htm" { pool pooltest }
"/someOtherPool*" {pool poolother)
default {
pool poollive
}
}
I use HTTP::path, which just excludes the querystring, since I don't need that to makemy switching decision. I have about 8 paths in my switch statement and it works very well.
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