Traefik: URL Path for backend is not used for reverse proxy

Created on 26 Jul 2016  路  3Comments  路  Source: traefik/traefik

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"
kinquestion statu5-frozen-due-to-age

Most helpful comment

All 3 comments

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.

It works perfectly
Well done guys

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ulm0 picture ulm0  路  3Comments

JensErat picture JensErat  路  3Comments

leowmjw picture leowmjw  路  3Comments

pichouk picture pichouk  路  3Comments

gaui picture gaui  路  3Comments