Re: "proxy_intercept_errors on" with @location setup

2021-09-18 Thread Francis Daly
On Fri, Sep 17, 2021 at 02:36:11PM -0300, Fabiano Furtado Pessoa Coelho wrote: > On Thu, Sep 16, 2021 at 7:37 PM Francis Daly wrote: > > On Thu, Sep 16, 2021 at 04:25:59PM -0300, Fabiano Furtado Pessoa Coelho > > wrote: Hi there, > > > The only valid configuration I've found to intercept errors

Re: "proxy_intercept_errors on" with @location setup

2021-09-17 Thread Fabiano Furtado Pessoa Coelho
Hi Francis... On Thu, Sep 16, 2021 at 7:37 PM Francis Daly wrote: > > On Thu, Sep 16, 2021 at 04:25:59PM -0300, Fabiano Furtado Pessoa Coelho wrote: > > Hi there, > > > Is it possible to use "proxy_intercept_errors on" with @location? > > Yes; but it is only useful if "proxy_pass" sees the > "prox

Re: "proxy_intercept_errors on" with @location setup

2021-09-16 Thread Francis Daly
On Thu, Sep 16, 2021 at 04:25:59PM -0300, Fabiano Furtado Pessoa Coelho wrote: Hi there, > Is it possible to use "proxy_intercept_errors on" with @location? Yes; but it is only useful if "proxy_pass" sees the "proxy_intercept_errors". Which means: if the config directives are in, or are inherite

"proxy_intercept_errors on" with @location setup

2021-09-16 Thread Fabiano Furtado Pessoa Coelho
Hello... I have the following issue... Is it possible to use "proxy_intercept_errors on" with @location? Invalid config: location /images/ { proxy_intercept_errors on; try_files $uri @backend; } location / { try_files $uri @backend; } location @backend { proxy_set_heade