iRule for setting pool based on URI path
Hello,
I know it's possible to set a pool based on the URI path. But what I need to do past that is a bit more complex, and I'm not sure where to begin.
I have two pools I'm testing with:
preprod.domain.com preprodtr.domain.com
I want to direct a request to the proper pool based on the /path
So if preprod.domain.com/tr is requested the request is routed to the pool preprodtr.domain.com
So this I think would be pretty easy if hardcoded. However, I cannot hardcode it since *tr.domain.com is dynamic. That is, I have many pools that could be *tr.domain.com not just the example preprodtr.domain.com
So what I need to be able to do is if the F5 sees the request *.domain.com/tr requested, it finds {host}tr.domain.com
Anyone have any ideas?
Thank you!