How to substitute patterns in response header?

We are building a reverse proxy for When a user visits a url like, it will be 302 redirected to Now I was wondering is there any way to substitute all in location header of the response with, so that we can also reverse proxy

1 Like

When this Pull Request is merged, you should be able to.

You’ll then be able to put header_downstream Location within the proxy directive to fix the redirects.


Pretty slick PR, imo. With that and http.filter, I expect you should be able to reverse proxy literally anything, at any arbitrary hostname and base path.


This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.