F5 iRule Pool Selection Based on URI

F5 iRule Pool Selection Based on URI

when HTTP_REQUEST {
    switch -glob [HTTP::path] {
       “/home*” –
       “/admin*” { pool prod-home-admin-pool }
       “/epms/v1/webAdministrator*” { pool prod-7112-pool }
        “/epms/v1/bidi*” – 
        “/epms/v1/mobileApp01/ads*” –  
        “/epms/v1/mobileApp/page/1*” –
        “/epms/v1/hub/insight*”  { pool prod-7113-pool }
        default { pool prod-7111-pool }
      }
    }

Leave a Reply