Forum Discussion
connecting 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 answer me
2 Replies
- ekaleido
Cirrus
This 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_poolYou 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 } } - Jinshu
Cirrus
If i understand your question correctly, You want to use muliple pools in the single VIP? Are you trying to seperate the traffic to the pools based on URI?
-Jinshu
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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