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, 2008The class object can be defined in the following
class dg_poola {
"/abc"
"/xyz"
}
class dg_poolb {
"/prq"
"/def"
}
The irule can be written so it uses the datagroup along with 'string tolower' argument.
when HTTP_REQUEST {
if { [matchclass [string tolower [HTTP::uri]] contains $::dg_poola] } {
pool poola
} else if { [matchclass [string tolower [HTTP::uri]] contains $::dg_poolb] } {
pool poolb
}
}
}
/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