AngryCat_52750
Feb 13, 2015Nimbostratus
irule for port listener - pool redirect
guys/gals -
we have two servers that listen for http requests on multiple ports (5010/5020/5030/5040). Instead of multiple VS with the various port listeners can i just have irule with a VS listening on any?
would the TCP::local_port work with HTTP_REQUEST?
when HTTP_REQUEST {
switch -glob [TCP::local_port] {
"5010" { pool pool_5010 }
"5020" { pool pool_5020 }
"5030" { pool pool_5030 }
"5040" { pool pool_5040 }
default { discard }
}
}
Thoughts ideas??