Forum Discussion
lorenze
Aug 10, 2020Altocumulus
Redirect multiple CNAME to a pool
Hello, Just want to ask for your thoughts on what would be the quickest way to redirect multiple CNAME for our website to specific pool? For instance, we have cname1.site.com, cname2.site...
lorenze
Altocumulus
,
Thank! I tried your recommendation but I'm having issues on making it work.
Simon_Blakely
Aug 11, 2020Employee
when HTTP_REQUEST {
# jt_cname_dg is a datagroup of type string containing matching cnames
log local0. "hostname [HTTP::host]"
if { [class match [string tolower [HTTP::host]] equals jt_cname_dg]} {
log local0. "matched datagroup"
pool jt_pool
} else {
log local0. "no datagroup match"
}
}
I missed the class match
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