Welcome! Log In Create A New Profile

Advanced

Re: Accessing backend response using nginx' Perl module

agentzh
October 04, 2009 11:20PM
On Mon, Oct 5, 2009 at 5:07 AM, Srebrenko Sehic <ssehic@gmail.com> wrote:
> Hi,
>
> I have a simple reverse proxy setup where a Perl module does some
> processing on the request and then forwards the request via the proxy
> module using an internal_redirect method. I also need to adjust the
> response from the backend. This includes the headers and body.
>

An example of using internal_redirect is the upload module:

http://www.grid.net.ru/nginx/upload.en.html

Regarding response header and body processing, I think you need an
output header filter and an output body filter here. See the core
module addition for sample code:

http://wiki.nginx.org/NginxHttpAdditionModule

Cheers,
-agentzh
Subject Author Posted

Accessing backend response using nginx' Perl module

Srebrenko Sehic October 04, 2009 05:14PM

Re: Accessing backend response using nginx' Perl module

agentzh October 04, 2009 11:20PM

Re: Accessing backend response using nginx' Perl module

agentzh October 04, 2009 11:32PM

Re: Accessing backend response using nginx' Perl module

Peter A Leonov October 05, 2009 02:02AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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