What is canonical filter workflow

2018-03-16 Thread eustas
Hello. I'm working on a zero-copy brotli compression filter. With zero-copy I wrap compressor output into a buffer and send it to next filter in a chain. The problem is - it is not clear how to properly wait until this buffer is released. If I just continue asking the next filter to do its wo

Re: Proxy requests that return a 403 error - issue with sending headers

2018-03-16 Thread Francis Daly
On Fri, Mar 16, 2018 at 11:20:31AM +, Friscia, Michael wrote: Hi there, > First of all, your response caused me to review everything and I was able to > solve it with you kicking me in the right direction. Good that you have it solved now. > Yes, I’m well aware of the header inheritance bu

Re: Proxy requests that return a 403 error - issue with sending headers

2018-03-16 Thread Friscia, Michael
First of all, your response caused me to review everything and I was able to solve it with you kicking me in the right direction. Yes, both the 403 and 200 requests are from the same location block. Yes, I’m well aware of the header inheritance but made a fatal mistake. I thought this only appl

Re: redirect to a .php file with try_files if required .php file not found

2018-03-16 Thread Francis Daly
On Thu, Mar 15, 2018 at 01:32:34PM +0200, ST wrote: Hi there, > maybe I pasted too much of my config, basically the important line is: > > try_files $uri /virtual_new.php =404; The try_files documentation is at http://nginx.org/r/try_files It is not clear to me what specific response y

Re: Proxy requests that return a 403 error - issue with sending headers

2018-03-16 Thread Francis Daly
On Thu, Mar 15, 2018 at 08:04:13PM +, Friscia, Michael wrote: Hi there, > I have a block in my global settings that offers these header additions. > proxy_set_header X-Origin-Forwarded-For $remote_addr; > But what seems to be happening is that for any normal request, the client IP > addres