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

arschles picture arschles  路  3Comments

JensErat picture JensErat  路  3Comments

f3l1x picture f3l1x  路  3Comments

rogeriollacerda picture rogeriollacerda  路  3Comments

emilevauge picture emilevauge  路  3Comments