/Redirect on Status

Redirect on Status

2
v1.0.1

Traefik Plugin: Redirect on Status

This Traefik Plugin provides a middleware to return a redirect to a specified domain when the next handler returns a specified error code. It behaves somewhat like the existing errors middleware.

Configuration

KeyAllowed ValuesRequiredDefaultDescription
statusThe values are stored as List
- Ranges: 200-299
- enumeration: 200,201
- single: 200
yes-Sets the repsonse stauts Codes of the down stream response, that the middleware does a redirect
redirectCode302, 303, 307 (All Temporary Redirect Status Codes)no307Sets the status code of the response for the up stream
methodThe values are stored as List
- HTTP-Methods, like GET, POST, etc.
noActs for every MethodSets that the middleware should only act for specific http methods
redirectUriA URI where to redirect to. May either be a FQDN or a relative Path. (Must align with the Location-Header spec)yes-Sets the value of the Location-Header. Therefore where the caller will be redirected to.