AddPrefix
The AddPrefix middleware updates the path of a request before forwarding it.
Configuration Options
Field | Description | Required |
---|---|---|
prefix | prefix is the string to add before the current path in the requested URL. It should include a leading slash (/ ). | Yes |
Example
Prefixing with /foo
apiVersion: traefik.io/v1alpha1
kind: Middleware
metadata:
name: add-foo
spec:
addPrefix:
prefix: /foo