Forum Discussion
F5 iRule redirects to different pools, url with dynamic content and 404 answer
I have a question, I can't get a success, I need an iRule to do the following:
We want to send a request that go to a specific host to be directed to a specific pool. So far that's not a problem
next, the requests from this host should then have dynamic content in the URI / firstname-lastname /
here is always the MINUS otherwise, I thought string-string or something but I didn't really find anything about such a scenario.
Is that possible ? And then of course that should also be in a certain pool, but when a 404 comes back then it should turn into
another pool. Maybe I could get some example or hints or some similar example. And what would be nice as well to mask the
redirects so that the user can't see it in the browser. I have never built such a scenario with iRules and I am usually never blessed
with success in iRules ; (. I would be happy to hear from someone.
Best regards
Manu
- Simon_Blakely
Employee
Your problem statement is not really clear, so it is hard to give you any good direction.
However, you can change pool and retry the request on a 404 response from the server side with the
command. Take a look at the example irule, which changes pool and retries on a 5xx response.
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com