can not look into my last message because it is not true. I cleared all browser history and got the same result as with my iRules. And we are back to my first question in my first message :)
it is clear from logs. HTTP::uri "/url" statement change URL and it is forwarding one time to new pool, but after that load balancer is forwarding to old pool because i can see in browser my URL was changed also from "; to . And after that load balancer is forwarding as /url to old pool.
< HTTP_REQUEST >: sending to Newpool with /url
< HTTP_REQUEST >: sending to oldpool with /url
iRule changing also URL in browser and this is problem. So this is will not solve my problem at all. My idea that we could send to pool (pool members) changed url (not that one in browser). Not sure is it possible. My logic is like
if { [ string tolower [HTTP::uri]] starts_with "/newurl" } {
pool NEWPOOL
}
this is correct, But lets say
NEWPOOL has:
server1
server2
so can we send to those server request adding anything like server1/url
not depending on what URL we have in browser?
using iRule up here we have something like URL forwarding and it could work, but we have in iRule the same statement, that's why it is not working as we need.