Forum Discussion
Parveez_70209
Nov 06, 2013Nimbostratus
Irules Data-Group
Hi,
Need your assistance into this topic related to Irule Based on Data-Groups:
Currently we have total 120 Virtual-Servers( 60 HTTP profiles + 60 HTTPS Profiles) created into the Load-Balancer ...
IheartF5_45022
Nov 07, 2013Nacreous
Explanation still confusing to me but here's one more go - I hope it helps!
switch -glob [HTTP::uri] {
"/" {
Do something - but don't do a redirect followed by a pool selection!! Will break!!
HTTP::redirect "https://parveez.com"
pool parveez.com
}
"/iss_static*" {
Choose a static pool matching to this virtual
pool [class match -element [string tolower [virtual]] starts_with dg_static_pools]
return
}
default {
Choose a dynamic pool matching to this virtual
pool [class match -element [string tolower [virtual]] starts_with dg_dynamic_pools]
return
}
}
Where both dg_dynamic_pools and dg_static_pools are datagroups containing key/value pairs of /.
NB1. The iRule will need some modification for v11 - should work v10
NB2. As comment says, you shouldn't do an HTTP::redirect followed by a pool selection
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