iRule redirect to pool based on path
Hi,
I am migrating rules from ISA Server to F5, actually the ISA check the path and redirect to backend server for example,
domain.com/online -> domain.com/online/ on node01 (10.0.0.1) domain.com/-> domain.com/online/index.html on node01 (10.0.0.1) domain.com/auth -> domain.com/auth on node02 (10.0.0.2)
i created an iRule to check the path and redirect to asigned pool when HTTP_REQUEST { if { [HTTP::path] starts_with "/" } { http:redirect "/online/" pool pool_node01 return } if { [HTTP::path] starts_with "/online" } { pool pool_node01 return } if { [HTTP::path] equals "/online/auth" } { pool pool_node02 return } }
But, ihave some problems when i try to redirect to backend servers.
Any suggestions?
Regards