For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

help

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"
        }
    }
}
Published Aug 25, 2016
Version 1.0
No CommentsBe the first to comment