-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Feature Request: Support nginx style rewrite rules via rds.RedirectAction #2092
Copy link
Copy link
Closed
Labels
beginnerGood starter issues!Good starter issues!enhancementFeature requests. Not bugs or questions.Feature requests. Not bugs or questions.help wantedNeeds help!Needs help!
Description
Currently, routes defined via RDS can have a RedirectAction that specify the host and path a matching Route will be redirected to. This works for the cases where one knows what the destination path is up front but not so much for the cases where prefix/suffix rewriting is needed. Nginx does this by allowing one to specify a matching regex on the original path and being able to reference capture groups in the destination:
rewrite ^/foo/(bar)/(.*)$ https://$server_name/$1/$2 permanent;
Ideally, envoy would able to support that kind of referencing but, in lieu of that, being able to at least refer to the original path in a RedirectAction.PathRedirect would help get us most of the way there. The same goes for protocol rewriting.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
beginnerGood starter issues!Good starter issues!enhancementFeature requests. Not bugs or questions.Feature requests. Not bugs or questions.help wantedNeeds help!Needs help!