Skip to main content

AddPrefix

The AddPrefix middleware updates the path of a request before forwarding it.


Configuration Example

Prefixing with /foo
apiVersion: traefik.io/v1alpha1
kind: Middleware
metadata:
name: add-foo
namespace: apps
spec:
addPrefix:
prefix: /foo

Configuration Options

FieldDescriptionDefaultRequired
prefixString to add before the current path in the requested URL. It should include a leading slash (/).Yes