Re: nginx Digest, Vol 132, Issue 24

2020-10-28 Thread Sergey A. Osokin
nx@nginx.org > > Subject: Nginx logging phase > > Message-ID: > > > qod30qg...@mail.gmail.com> > > Content-Type: text/plain; charset="utf-8" > > > > I'm writing an Nginx plugin (using Openresty Lua) which increments a > > counter when a requ

Re: nginx Digest, Vol 132, Issue 24

2020-10-28 Thread Hiwa
enresty Lua) which increments a > counter when a request is received (in ACCESS phase) and decrements the > counter when request is processed (in LOG phase) in order to keep track of > in-flight requests. > > I've seen some cases where the

Re: remote_addr variable

2020-10-28 Thread A. Schulze
Am 25.10.20 um 12:20 schrieb Francis Daly: > map $remote_addr $this_transport_is { > ~: IPv6; > default IPv4; > } > > and then use $this_transport_is where you want it. > > (Note: I have tested this with > > return 200 "Transport: $this_transport_is\n"; > > but I have not tried

Re: Nginx logging phase

2020-10-28 Thread Maxim Dounin
Hello! On Wed, Oct 28, 2020 at 02:14:40PM +0530, Vikas Kumar wrote: > I'm writing an Nginx plugin (using Openresty Lua) which increments a > counter when a request is received (in ACCESS phase) and decrements the > counter when request is processed (in LOG phase) in order to keep track of > in-fl

Re: upstream SSL certificate does not match "x.x.x.x"

2020-10-28 Thread Francis Daly
On Wed, Oct 28, 2020 at 12:28:04AM -0400, bouvierh wrote: Hi there, it looks to me like you've come across a case that the current nginx code does not handle in the way that you want it to. Maybe the nginx code could be changed to handle this case; or maybe it will be decided that what nginx doe

Nginx logging phase

2020-10-28 Thread Vikas Kumar
I'm writing an Nginx plugin (using Openresty Lua) which increments a counter when a request is received (in ACCESS phase) and decrements the counter when request is processed (in LOG phase) in order to keep track of in-flight requests. I've seen some cases where the counter increments but does not