Forum Discussion
negin_297580
Nimbostratus
Nov 01, 2016connecting single virtual server to several pools
In a senario,I have one virtual server that wants to connect with three server pools, I want to add web server addresses to single virtual server, how can I set the addresses for that? thanks to answ...
ekaleido
Cirrus
Nov 01, 2016This requires you create a datagroup tying a URL (in lower case) to the pool name you want the URL to use. Example:
www.example.com := www.example.com_pool
You also should have a default pool for cases where the URL does not match your whitelist. If you prefer you could modify the iRule to reply with a 404 or something instead of using the default pool as a fallback.
when HTTP_REQUEST {
set hostpool [class match -value [string tolower [HTTP::host]] eq url_whitelist]
if { $hostpool ne "" } {
pool $hostpool
}
}
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