Welcome! Log In Create A New Profile

Advanced

Re: [Nginx] perl module get an empty body

August 12, 2012 06:32AM
Hello Maxim,

OK got it now ;-)
It's working, you saved my day :-D

So to put it in a nutshell:
- I used perl switcher_test::handler in my location /
- in the handler method I call $r->has_request_body(\& test) and in test method according to what I found in the body I do an internal_redirect (as far as I understood it can only redirect to a location in the same vhost) to /proxy1 (or /proxy2 depending) and return.
- in /proxyX I do a rewrite /proxyX(.*) $1 break; proxy_pass http://my_upstream

It's working perfectly but I just wonder if there is a more elegant/efficient way to do it ?

RĂ©mi
Subject Author Posted

[Nginx] perl module get an empty body

darkweaver871 August 10, 2012 06:03AM

Re: [Nginx] perl module get an empty body

darkweaver871 August 10, 2012 06:04AM

Re: [Nginx] perl module get an empty body

darkweaver871 August 10, 2012 07:03AM

Re: [Nginx] perl module get an empty body

darkweaver871 August 10, 2012 09:44AM

Re: [Nginx] perl module get an empty body

Maxim Dounin August 10, 2012 07:14AM

Re: [Nginx] perl module get an empty body

darkweaver871 August 10, 2012 09:46AM

Re: [Nginx] perl module get an empty body

darkweaver871 August 10, 2012 10:12AM

Re: [Nginx] perl module get an empty body

Maxim Dounin August 10, 2012 09:56AM

Re: [Nginx] perl module get an empty body

Maxim Dounin August 10, 2012 01:12PM

Re: [Nginx] perl module get an empty body

darkweaver871 August 12, 2012 06:32AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 124
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready