Welcome! Log In Create A New Profile

Advanced

Help with my module

Posted by SpecialeW 
Help with my module
August 04, 2012 08:15AM
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
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 121
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready