Forum Discussion

Abdou76's avatar
Abdou76
Icon for Cirrus rankCirrus
Nov 10, 2022

Multiple server with one VS

Hello,  Can i use two différents servers with one virtual server, for example :  1/ abc.com : Vs 172.16.250.100 -----> server1 : 10.10.10.10 2/ xyz.com : Vs 172.16.250.100 -----> server2 : 10.10...
  • Mohamed_Ahmed_Kansoh's avatar
    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 

  • Abdou76's avatar
    Abdou76
    Nov 20, 2022

    Hi mohamedT

    hank you for your great help