Forum Discussion
Multiple server with one VS
- Nov 20, 2022
Abdou76 ,
sure you can do this ,
try this :when HTTP_REQUEST { if {[HTTP::host] eq "abc.com"}{ pool pool_1 } elseif {[HTTP::host] eq "xyz.com"}{ pool pool_2 } elseif {[HTTP::host] eq "ghl.com"}{ pool pool_3 } }
Hope it works with you.
Regards - Nov 20, 2022
Hi mohamedT
hank you for your great help
Okay Abdou76 ,
make sure to assign a monitor to your pools until make them available.
Then apply your iRule to your Virtual server.
The best way to make it available is assigning a default pool directly , but I Tested it on my lab and I see the virtual server available when " all pools that have been used in irule UP and Available by their health monitor "
Try it
Regards
Hi Mohamed
Bellow are my captures :
- Nov 18, 2022
okay ,
did you test this virtual server and worked well with you after assigning iRule.
it should work as blue squire means it recieves traffic and process it same as available green circle.
test it first please.- Abdou76Nov 18, 2022Cirrus
The VS works fine if i remove the irule and make the default pool to pool1 or pool2.
Thank you.
- Nov 18, 2022
No Abdou76 ,
I mean when you assign the iRule to your virtual server , and removing and pool1 or pool 2 from " default pool resouces.
did my iRule worke with you or not ?
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