Forum Discussion
Emad
Cirrostratus
Mar 27, 2013Using Multiple iRule s for Client Selection
i have a domain i.e out.abc.com, there are multiple subdomains also hosted on that vip. I am using an Irule for subdomain based switching.
IRule being used for switching is :
...
Kevin_Stewart
Employee
Mar 27, 2013Since it's specific to the internal pool, why not just combine the logic:
when HTTP_REQUEST {
switch [string tolower [HTTP::host]] {
out.abc.com { pool out_abc_com }
out2.abc.com { pool out2_abc_com }
out3.abc.com { pool out3_abc_com }
internal.abc.com {
if { [class match [IP::client_addr] equals allowedAddresses] } {
pool internal_abc_com
} else {
discard
}
}
default { pool default_i2cinc_com}
}
}
By the way, assuming you're not still on a 9.x box, matchclass is now deprecated and you don't need the "$::" syntax to address data groups.
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