Thank You for the update, Will try and let You know ... -V. On Wed, Feb 24, 2021 at 9:03 PM Maxim Dounin <mdou...@mdounin.ru> wrote:
> Hello! > > On Wed, Feb 24, 2021 at 06:44:49PM +0100, Vincent Blondel wrote: > > > Thank You for the swift answer Maxim. > > If I understand, you mean something like that should be going to Work ... > > > > location /subrequest/ { > > proxy_pass xxx; > > } > > location /anyrequest/ { > > auth_request /subrequest/; > > error_page 400 = @fallback; > > proxy_pass xxx; > > } > > location @fallback { > > proxy_pass_request_body off; > > proxy_set_header Content-Length ""; > > proxy_pass http://backend; > > } > > Sort of, but you have to use 401 or 403, see the auth_request > documentation ( > http://nginx.org/en/docs/http/ngx_http_auth_request_module.html). > > -- > Maxim Dounin > http://mdounin.ru/ > _______________________________________________ > nginx mailing list > nginx@nginx.org > http://mailman.nginx.org/mailman/listinfo/nginx >
_______________________________________________ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx