ReplacePath

    Replace the path of the request url.

    Docker

    1. # Replace the path by /foo
    2. apiVersion: traefik.containo.us/v1alpha1
    3. metadata:
    4. name: test-replacepath
    5. replacePath:
    6. path: /foo

    Consul Catalog

    Marathon

    1. "labels": {
    2. }

    File (TOML)

    1. [http.middlewares]
    2. [http.middlewares.test-replacepath.replacePath]
    3. 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.