Hi,
I want to write an Nginx module that reads/modifies the headers of a request and then send the request to the backend server.
I also want to modify the headers of the response.
I've looked at many other modules and read the module development guide, but I can't figure out the proper way to do this.
The eval module looks most like what I try to achieve, but it sends a static uri to the backend, where I need it to work as a full reverse proxy. But when I modify the request uri of the subrequest in the eval module code, I get an endless loop and Nginx crashes.
Can anyone here point me in the right direction. Do I need to write my own upstream request, or can I make use of the proxy_pass directive for the further request handling when I'm done with it?
Help is very much apreciated!
Willem