I have installed Traefik on an ECS cluster which is working great. Now, I have a requirement to point to a backend service only if it matches a header (say X-Something: SomeValue)
I have looked at the documentation but could not get an idea of how to do the same
Thanks for using Traefik and asking the question here.
The solution is to create a rule that will match the Header based on e.g. Headers or HeadersRegexp matcher.
The example you are referring to uses the basic with Host header which is the most typical use case, However Traefik has more available matchers and the list of available is available here:
You could consider enhancing the matching rule as it follows: