Welcome! Log In Create A New Profile

Advanced

Accessing backend response using nginx' Perl module

Srebrenko Sehic
October 04, 2009 05:14PM
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.

I looked at the nginx.xs and ngx_http_perl_module.c but could not see
how it could be done (I'm still pretty new to nginx so bear with me).
I guess an output filter hook needs to written and the API exposed to
the Perl module in some way.

Can someone point me in the right direction?

Thanks,
Srebrenko
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: 155
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready