I want to remove the server name from the error pages returned by the Kubernetes Nginx ingress controller. I added the server tokens to be false which takes care of the headers but when I curl or open the ingress in the browser I still get the server name.
server-tokens : "False"
I want to get rid of the server name while returning a 404 or any other error for that matter. What is the easiest way to achieve this? I don't have a default backend. Is there any way I can edit the ingress for this backend and add a custom HTML page directly without having to deploy default backends or inject the page using the nginx-configmap?