Great but not only I want to remove it from the URL but I want to select a pool on the basis of /test. Just like proxypass works in Apache. It decides a pool on the basis of first word in URL like http://10.50.171.8:80/test/Services… now VS will select a pool name TEST(or what ever) and omit the work /test from the url and send it to pool TEST. I will be always grateful if you combine this with your last comment.
As my URl are case sensitive so made little change when HTTP_REQUEST { set uri [HTTP::uri] if { $uri starts_with “/CRM” } { HTTP::uri [string map {“/CRM” “” } $uri ] pool Tibco-LB-Group4 } } This is working for me Please check if the set statement is right? Please can you add a statement which will log all the requests to external log server for example the ip of the log server is 10.50.242.239. You made my day sir.
I only want to remove /CRM at the start of URI and if it occurs again in the URL iRule should not remove it it. How can i do that. final requirement. Please