follow upstream redirects directive #7219
Replies: 10 comments
-
Should probably use |
Beta Was this translation helpful? Give feedback.
-
Proxy_redirect would fix the issue nicely :) |
Beta Was this translation helpful? Give feedback.
-
+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). |
Beta Was this translation helpful? Give feedback.
-
+1 Need this too |
Beta Was this translation helpful? Give feedback.
-
+1 also need this |
Beta Was this translation helpful? Give feedback.
-
+1 same here |
Beta Was this translation helpful? Give feedback.
-
+1 need this too |
Beta Was this translation helpful? Give feedback.
-
+1 looking for this |
Beta Was this translation helpful? Give feedback.
-
+1 this would be a much-needed option in kong itself (instead of fiddling with the underlying nginx configs) |
Beta Was this translation helpful? Give feedback.
-
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.Beta Was this translation helpful? Give feedback.
All reactions