Martin,
Its my understanding that the listen paths for my apis must be unique but I have a conflict and I am wondering how to set up my configuration.
I have one api with a listen path for /internal/ and a target url of http://123.company.com/
I want to add another api with the same listen path of /internal/ but uses an different target url of http://abc.company.com/
Is this possible? Can the listen paths accept 1 or 2 directories or even wildcards?
Martin
June 20, 2016, 6:42pm
2
Unfortunately not, Tyk has no idea how to differentiate between the two origins, and everything is bound to a listen path.
We’re looking at ways to switch this in future versions, but or now you will need to do this with different listen paths or domains.
So if I do the following will this work?
have one api with a listen path for /internal/ and a target url of http://123.company.com/
and then another api with a listen path of /internal/sports/ and a target url of http://abc.company.com/
Will that work?
Martin
June 20, 2016, 8:46pm
4
Yup, it should do, though there may be a load order issue - try it and see if it routes correctly, if not there’s a way to force the sort order of an API.