Proxypass in F5
Hey all the experts of F5, i am network guy please help me out and make an iRule for me and please don't direct me to some Apache proxy pass iRule link as its hard for me to change.
Actually i want to transfer the simple proxypass and reverse proxypass config from Apache to F5 LTM v.11.4.1.
In Apache it was pretty straightforward like
BalancerMember http://10.50.173.52:9801
BalancerMember http://10.50.173.53:9801
ProxyPass /test balancer://test
What i want is that client dials http://10.50.166.1:80/test/
and request is load balanced in pool name client_servers
http://10.50.173.52:9801
http://10.50.173.52:9801
Like the URI /test/ is just used to selet pool and not the part of the actual service url.
How ever i can achieve this please guide me.. iRule, policy, etc
when HTTP_REQUEST { if {[HTTP::uri] starts_with "/test/"} { pool client_servers } else { pool default_pool } }
EDIT: I fixed the syntax error and added another : to HTTP::uri.