Input filters in Nginx?
mdounin at mdounin.ru
Tue Oct 29 16:19:58 UTC 2019
On Tue, Oct 29, 2019 at 09:49:29AM -0400, awagner wrote:
> Hi all. I did some search on the web and the archives here and did not find
> an conclusive answer to this question.
> Apache has both input a filters (work on the request before content
> generation) and output filters (work on generated content). As I am
> exploring the possibility to port some Apache modules that transform data in
> both directions in a proxy-setup to Nginx, I am wondering whether Nginx has
> input filters as well. What I have read about Nginx modules seem to indicate
> that it does not. Is that correct?
> I am aware that I could hack something into the proxy module, but I would
> like to avoid that approach.
Depending on what you are trying to do, either phase handlers or
request body filters might work for you.
If they won't, you are probably looking for either proxy-level
modifications with proxy module configuration options (such as
proxy_set_header and proxy_set_body), or for a proxy-like module
which will do appropriate modifications.
More information about the nginx