ReplacePath
Replace the path of the request url.
Docker
# Replace the path by /foo
apiVersion: traefik.containo.us/v1alpha1
metadata:
name: test-replacepath
replacePath:
path: /foo
Consul Catalog
Marathon
"labels": {
}
File (TOML)
[http.middlewares]
[http.middlewares.test-replacepath.replacePath]
path = "/foo"
File (YAML)
Configuration Options
- replace the actual path by the specified one.
path
The option defines the path to use as replacement in the request url.