Forum Discussion
hooleylist
Nov 17, 2006Cirrostratus
Is the rule working? It looks functionally correct. The only question I have is: is the field you're saving from the host header correct? Try logging the value you get for redirectport and checking the /var/log/ltm log file to verify it's what you expect.
when HTTP_REQUEST {
set redirectPort [getfield [HTTP::host] ":" 2]
log local0. "port: $redirectPort"
if { $redirectPort equals "8003" }{
pool 8003
}else if {$redirectPort equals "8004" }{
pool pool8004
} else {
pool pool8002
}
}
Aaron