Forum Discussion
Common Host redirect with different URIs
The reason your script is not working is because of the 'HTTP::redirect "/uri_x"' command. The redirect command is only sending a redirect to the client and forcing a reconnection back to the virtual server. The redirect command is not actually doing anything to the backend servers (pool members).
Instead of the redirect, edit and change the actual uri string, before the "pool [...]" command. Something like this:
HTTP::uri = "/uri_x"
if (criteria_A) { HTTP::uri = "/uri_x" pool pool_A } elseif (criteria_B) { HTTP::uri = "/uri_x" pool pool_B }
DON'T FORGET TO ASSIGN A DEFAULT POOL FOR A CATCH ALL SITUATION. That should do the trick.
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
