Abhi-netdive
Nov 15, 2023Nimbostratus
How can we remove a part of uri while sending to backened server while maintaining the frontend url
The requirement is Client access with url : https://abc.com/x/* the request comes to f5 and f5 removes the "/x" in uri keeping all other parts of uri same as : https://abc.com/* and then forward to backened member serever 1.2.3.4 on port 44500.
We have tried using the Policy :
- first user gets the backened page on https://abc.com/x/* as expected there is option to login in the page, when the user enters the credentials and submit, it starts connecting to backened url https://abc.com/* directly from client browser making it fail.
Configuration done in f5 :
Match condition : HTTP URI full string contains '/x' at request time.
Then:
1. Replace HTTP URI Path: 'tcl:[string map {/x/ /} [HTTP::uri]]' at request time.
2. Forward traffic to pool '/Common/1.2.3.4-44500' at request time.
Please help sugeest how can we stop the redirect happening from CLient browser to backened url. which is only intended f5 to backened server communication.