In this case, I want my redirection /test to be forwarded to http://localhost:8000/path1/test or http://localhost:8000/path2/test
The problem is that Traefik only forward to http://localhost:8000/test. The server Path is never used.
[backends]
[backends.backend1]
[backends.backend1.servers.server1]
url = "http://localhost:8000/path1/"
[backends.backend1.servers.server2]
url = "http://localhost:8000/path2/"
[frontends]
[frontends.test]
backend = "backend1"
[frontends.test.routes.test_1]
rule = "PathPrefix: /test"
We are running into this issue as well.
It appears the backend path is being ignored, and there is no apparent way to add or rewrite paths on the frontends.
You can use: https://docs.traefik.io/basics/#modifiers
It works perfectly
Well done guys
Most helpful comment
You can use: https://docs.traefik.io/basics/#modifiers