Forum Discussion

jsolis_326116's avatar
jsolis_326116
Icon for Nimbostratus rankNimbostratus
Jul 07, 2017

configure two URL with the same web page

I need configure my F5 LTM that when an user search the URL "; and "; the traffic be sends to different servers, but the central web page be the same.

 

Is it possible

 

1 Reply

  • P_K's avatar
    P_K
    Icon for Altostratus rankAltostratus

    You can try this irule,

     

    when HTTP_REQUEST {

     

    if { [HTTP::host] eq " && [string tolower [HTTP::uri]] starts_with "/case1" } {

     

    pool serverpool1

     

    } elseif { [HTTP::host] eq " && [string tolower [HTTP::uri]] starts_with "/case2" } {

     

    pool serverpool2

     

    }

     

    }

     

    Pool1 will be your serverpool processing /case1 traffic and pool2 will be your serverpool processing /case2 traffic