Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redirect 301, 302, 308 #1009

Open
beckend opened this issue Oct 22, 2023 · 7 comments
Open

Redirect 301, 302, 308 #1009

beckend opened this issue Oct 22, 2023 · 7 comments
Assignees
Labels

Comments

@beckend
Copy link

beckend commented Oct 22, 2023

Match URI, then redirect to another.

@FlorentinDUBOIS
Copy link
Collaborator

Hello,
Could give us more details about what you want to achieve and your need?

@beckend
Copy link
Author

beckend commented Oct 25, 2023

here is something from envoy, I hope this is clear

                "route_config": {
                  "name": "local_route",
                  "virtual_hosts": [
                    {
                      "name": "all-international",
                      "domains": ["sang.international","*.sang.international"],
                      "routes": [
                        {
                          "match": {
                            "prefix": "/"
                          },
                          "redirect": {
                            "host_redirect": "sang.agency"
                          }
                        }
                      ]
                    }
                  ]
                },

@Walker-00
Copy link

@FlorentinDUBOIS I think it's something like matching subdomain request and route to the specific port or url, and I also needing that

@FlorentinDUBOIS
Copy link
Collaborator

Sorry for the late response, I miss the notification. So, we already have implemented the wildcard matching pattern using or not path prefix, equals or regex. However, we do not have a redirect feature yet.

@FlorentinDUBOIS
Copy link
Collaborator

@Wonshtrum is the redirect feature easy to implement?

@Walker-00
Copy link

should implement that feature, waiting for it.

@Wonshtrum
Copy link
Member

The redirection itself is quite straightforward, but I'm not quite sure about the integration with the tooling: command line, config.toml, protobuf messages...
We should also decide what exactly are the capabilities of this feature. I don't know how it is done in other reverse proxies, but can we only change the authority? Should we be able to change the path? Is it a simple replacement or should we handle wildcards (*.domain.com -> *.domain2.com), if so what about regexes?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants