mirror of
https://github.com/containous/traefik.git
synced 2025-10-25 03:33:20 +03:00
Fix Rewrite-target regex
This commit is contained in:
committed by
Traefiker Bot
parent
7d2b7cd7f1
commit
ba3a579d07
@@ -1410,7 +1410,7 @@ rateset:
|
||||
frontend("rewrite/api",
|
||||
passHostHeader(),
|
||||
routes(
|
||||
route("/api", "PathPrefix:/api;ReplacePathRegex: ^/api/(.*) /$1"),
|
||||
route("/api", "PathPrefix:/api;ReplacePathRegex: ^/api(.*) $1"),
|
||||
route("rewrite", "Host:rewrite")),
|
||||
),
|
||||
frontend("error-pages/errorpages",
|
||||
|
||||
Reference in New Issue
Block a user