Forum Discussion

Johnde's avatar
Johnde
Icon for Cirrus rankCirrus
Mar 16, 2020
Solved

Multiple Web Applications behind single VS

I am planning to configure multiple applications/URLs behind one Virtual server for saving my public IPs. Please suggest me how can i achieve it?
  • Mayur_Sutare's avatar
    Mar 16, 2020

    Hello John,

     

    You can do it using iRule. Please refer below iRule.

     

    when HTTP_REQUEST 

    {

      switch [HTTP::host] {

       

    "abc.com" {pool abc-pool}

    "xyz.com" {pool xyz-pool}

                 }

              }

     

    In this way, you can add multiple application urls alongwith its associated pool. Entries here are case sensitive. Also make sure Virtual Server Configuration like SSL& http profiles, SNAT etc is proper to handle all requests.

     

    Hope this will fulfill your requirement!

     

    Mayur