Forum Discussion
Ravi_Rajan_7549
Nimbostratus
Mar 17, 2008Redirection with Multiple pools
Hi,
I am not very experienced with irules and have few queries as below -
I have two pools ex. poola and poolb. Each pool has few servers like -
poola - server1, server...
The_Bhattman
Nimbostratus
Mar 17, 2008Hi Ravi
The code could look something like the following:
when HTTP_REQUEST {
switch [HTTP::uri]
"/abc" - "/xyz" { pool poola }
"/pqr" - "/def" { pool poolb }
}
}
Keep in mind that the code can be written in IF-ELSE logic, but switch statement will look a bit cleaner for this particular situation.
You can learn more about switch statements from the following link
http://devcentral.f5.com/Default.aspx?tabid=63&articleType=ArticleView&articleId=129
thanks,
CB
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