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

Was this article helpful?

No CommentsBe the first to comment