Prefix
Summary
If Prefix is set, the route will only match incoming requests with a path that begins with the specified prefix.
How to configure
- Core
- Enterprise
- Kubernetes
YAML/JSON setting | Type | Usage |
---|---|---|
prefix | string | optional |
Set the Prefix in Path Matching settings:
Name | Type | Usage |
---|---|---|
Prefix | string | optional |
See Kubernetes Ingress for more information
Examples
from: https://from.example.com
to: https://to.example.com
prefix: /admin
# ingress
spec:
ingressClassName: pomerium
rules:
- host: example.localhost.pomerium.io
http:
paths:
- backend:
service:
name: example
port:
name: http
path: /
pathType: Prefix