I have Create a reverse proxy and added a Flow to proxy endpoint with condition.
<Condition>(proxy.pathsuffix MatchesPath "/dummy") and (request.verb = "GET")</Condition>
target url:http://sample/sample
proxy url:http://api-test/v1/apiproxy/dummy
It satisfies the conditional flow condition and executes the policies present in flows
but target url is modifying to
targetUrl: http://sample/sample/dummy and getting 404 not Found error.
How can i overCome this issue and hit the targetUrl.
Solved! Go to Solution.
@Dinesh Potti,
Use assign message policy or JavaScript policy to disable copying the pathsuffix to the Target url by setting target.copy.pathsuffix to false
@Dinesh Potti,
Use assign message policy or JavaScript policy to disable copying the pathsuffix to the Target url by setting target.copy.pathsuffix to false
Hi Nagashree,
Thank's for reply and it work's.
User | Count |
---|---|
3 | |
2 | |
1 | |
1 | |
1 |