Traefiks equivalent to RewriteMap

Hey, i want to route traffic to different services based on a custom header. The list of header values and the service where that request should be proxied to is pretty long so i'd rather not create a whole rule for each one. When using Apache2, i can just use RewriteMap and provide a text file with header values and ports, is there something similar in traefik? I've read the docs and didn't found anything similar to that.

Haven't seen something like that in the extensive docs, then it probably does not exist. As you stated you can work around by using different routers/services.