proxy_intercept_errors off parameter does not work for me on nginx 404 response code #12430
Labels
needs-kind
Indicates a PR lacks a `kind/foo` label and requires one.
needs-priority
needs-triage
Indicates an issue or PR lacks a `triage/foo` label and requires one.
Hello, I am trying to extend a bit our configuration of ingress by adding server-snippet config under controller.config.server-snippet. The goal is to add 1 extra header to the all responses coming directly from NGINX.
So far I have it like that: (I know I can simplify it by putting it together)
The 503 seems to work so far, but 404 part does not work at all when proxy_intercept_errors is set to OFF. Even on the ones that are 100% from NGINX. When I turn it on, it works, but it put that extra header on every single response, even on the ones that are not from NGINX.
I understand proxy_intercept_errors parameter as parameter that separates managing responses that comes directly from NGINX and the others.
So am I missing something or should I look at 404 response differently than at the 503?
Thank you so much !
The text was updated successfully, but these errors were encountered: