Welcome! Log In Create A New Profile

Advanced

Modify request body before sending to upstream

January 21, 2015 05:47AM
Hi,

I am new to nginx module development and I'm working on my first ever module. I've read up Evan Miller's post besides others, and I've experimented tweaking some simple modules.

From what I understand, proxy_pass module is a handler and we can effectively have just one handler run on a request. What I need is to do some work with the content before I send a request to the upstream servers. I have been able to achieve the reverse via filter modules, but not this. Is there an way to achieve this without touching proxy_pass?

The requirement comes from a server rewrite we are doing to improve performance. We have nginx load balancing requests to a bunch of servers running python. We decided to rewrite some of the python pre-processing in C/C++ and write an nginx module to wrap around it.

Please lead me the right way :).

Abhishek
Subject Author Posted

Modify request body before sending to upstream

abhinanda January 21, 2015 05:47AM

Re: Modify request body before sending to upstream

abhinanda January 26, 2015 10:08PM

Re: Modify request body before sending to upstream

mex January 27, 2015 01:10AM

Re: Modify request body before sending to upstream

abhinanda January 27, 2015 01:20AM

Re: Modify request body before sending to upstream

mex January 27, 2015 01:29AM

Re: Modify request body before sending to upstream

abhinanda January 27, 2015 02:06AM

Re: Modify request body before sending to upstream

abhinanda January 27, 2015 02:14AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 311
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