I am trying to create a reverse proxy, that should map the following routes
http://<host>/api/foo -> service_1
http://<host>/api/bar -> service_2
I have the following dynamic configuration:
With the above dynamic configuration only the bottom one ist mapped accordingly.
api/foo returns a 404.
I have also tried the following rule:
However, when routing to
/api/foo, I am now proxied to the service of
Does anyone know how to get this setup working with nested routes? Can I somehow create a router parent for
api routes, and handle it that way? Or is this not currently possible with traefik, should I rather create a mapping, such as the following:
I got it working:
command: -name foo
command: -name bar
command: -name api
With this, I can do:
> curl localhost/api | jq .name # /api is a special path on whoami
> curl localhost/api/bar | grep Name
> curl localhost/api/foo | grep Name
Thanks for the response, after rebuilding my dynamic config it started working as expected. I must have had a syntax error somewhere.
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.