Fix rewrite-target Annotation behavior

This commit is contained in:
Daniel Tomcej 2018-07-09 16:26:03 -06:00 committed by Traefiker Bot
parent ba2046491a
commit 9374d6b3b9
2 changed files with 3 additions and 2 deletions

View file

@ -1371,7 +1371,7 @@ rateset:
frontend("rewrite/api",
passHostHeader(),
routes(
route("/api", "PathPrefix:/api;ReplacePath:/"),
route("/api", "PathPrefix:/api;ReplacePathRegex: ^/api/(.*) /$1"),
route("rewrite", "Host:rewrite")),
),
frontend("error-pages/errorpages",