Welcome! Log In Create A New Profile

Advanced

Re: [ANNOUNCE] auth request module

Maxim Dounin
March 11, 2010 12:40PM
Hello!

On Thu, Mar 11, 2010 at 12:04:14PM -0500, amvtek wrote:

> Spassiba Maxim !
>
> Can we consume request body both in :
> * /auth url
> * and the latter private url

Short answer: no

Long answer:

Currently request body isn't read by auth request. In fact it
specially prevents this from happening, as an attempt to read
request body from subrequest will cause SIGSEGV - nginx doesn't
expect this to happen.

Moreover, as of now request body may be used only once if it
doesn't fit into memory, as first successful upstream request will
close temporary file used to buffer it. This may even cause
problems in nginx with official modules (e.g. ssi returned by
backend and ssi subrequests).

I'm not sure how to fix this properly. For now I tend to think
that only main request should be allowed to work with request body
and subrequest should always ignore it.

Maxim Dounin

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

[ANNOUNCE] auth request module

Maxim Dounin February 27, 2010 02:06PM

Re: [ANNOUNCE] auth request module

agentzh February 28, 2010 01:14AM

Re: [ANNOUNCE] auth request module

Valery Kholodkov March 01, 2010 04:40AM

Re: [ANNOUNCE] auth request module

agentzh March 11, 2010 05:10AM

Re: [ANNOUNCE] auth request module

amvtek March 11, 2010 12:04PM

Re: [ANNOUNCE] auth request module

Maxim Dounin March 11, 2010 12:40PM

Re: [ANNOUNCE] auth request module

amvtek March 12, 2010 02:53AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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