Hi everyone,
I have a customer with a strange request. The want to specify in the URI which pool to use, then strip the part that identify it and continue with the load balance. My irules are not up to scratch yet and I have done this so far but get stuck on the removal of the “prd/” and “ppd”.
Any help will be appreciated.
---- snip ----
when HTTP_REQUEST {
if {[HTTP::host] contains “soa”} {
if {[HTTP::uri] starts_with “/prd/”} {
Remove prd/ here
pool POOL_SOA_PRD
}
if {[HTTP::uri] starts_with “/ppd/”} {
Remove pPd/ here
pool POOL_SOA_PPD
}
else {
THIS IS ONLY HERE SO THAT THEY CAN KEEP TESTING
pool POOL_SOA_PRD
}
}
}
Thanks in advanced.
Wynand