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