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
The VS works fine if i remove the irule and make the default pool to pool1 or pool2.
Thank you.
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 ?
- Abdou76Nov 18, 2022
Cirrus
No it doesn't mork, the VS still blue.
- Nov 18, 2022
Abdou76 ,
Okay ,
this iRule is wrong :it should be like this :
when HTTP_REQUEST { if {[HTTP::host] eq "abc.com"}{ pool pool_1 } elseif {[HTTP::host] eq "xyz.com"}{ pool pool_2 } }_____________________________________________________________
> do you have 2 pools and each pool has 1 pool member.
or you have only one pool contains 2 members '' 10.10.10.10 , 10.10.10.11" ?
it is important question as it will need to change in iRule- Abdou76Nov 18, 2022
Cirrus
I have 2 pool; membre of pool1 is 10.10.10.10. membre of pool2 is 10.10.10.11.
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