if the upstream responds with a redirect, typically it will send an absolute path that will not match the one Kong clients are calling _(both request host and request path)_.
a follow_redirects directive on the API would instruct nginx to retry the same request at the new location before sending back to the client, thus eliminating the need for the client to know about the redirect.
Should probably use proxy_redirect.
Proxy_redirect would fix the issue nicely :)
+1, this would be particularly useful when the redirect from the upstream host is unreachable from the end user's machine, but is reachable by Kong (e.g. Kong is exposing an internal service).
+1
+1 Need this too
+1 also need this
+1 same here
+1 need this too
+1 looking for this
+1 this would be a much-needed option in kong itself (instead of fiddling with the underlying nginx configs)
Most helpful comment
+1, this would be particularly useful when the redirect from the upstream host is unreachable from the end user's machine, but is reachable by Kong (e.g. Kong is exposing an internal service).