cancel
Showing results for 
Search instead for 
Did you mean: 

Problem this snippet solves:

when CLIENT_ACCEPTED {

# Save the name of the virtual server's default pool before it's change in this iRule set default_pool [LB::server pool] } when HTTP_REQUEST { switch -glob [HTTP::path] { "/abc/proxy.jsp" { pool $default_pool } "/xyz*" { pool xyz_pool } ... default { HTTP::redirect "https://www.google.com" } } }

Code :

when CLIENT_ACCEPTED {

   # Save the name of the virtual server's default pool before it's change in this iRule
   set default_pool [LB::server pool]
}
when HTTP_REQUEST {
    switch -glob [HTTP::path] {
        "/abc/proxy.jsp" {
            pool $default_pool
        }
        "/xyz*" {
            pool  xyz_pool
        }
        ...
        default {
          HTTP::redirect "https://www.google.com"
        }
    }
}
Version history
Last update:
‎25-Aug-2016 12:21
Updated by:
Contributors