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.0No CommentsBe the first to comment
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)