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...
Simon_Blakely
Employee
It will be easier to manage if you create a datagroup (type string) to hold the CNAMES, and match against the datagroup.
when HTTP_REQUEST {
# cname_dg is a datagroup of type string containing matching cnames
if { [HTTP::host] equals cname_dg} {
pool pool_name
}
}
lorenze
Aug 10, 2020Altocumulus
,
Thanks for pointing that out. I haven't really think of it or if that is even possible. Quick question though, Does the string and value on creating DG needs to match or just adding the cnames as the string would be all good?
Thanks again , Really appreciate it
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