I need a way to disclose the response Server header, not just the version.
I know that with nginx plus I can use ‘server_tokens ““; ‘
But, at this stage, of evaluating a solution to replace ingress-nginx, I want to avoid:
1. subscriptions
build a custom nginx image with e.g. headers-more module
If you want to avoid a subscription and do not want to build a custom NGINX image, using server_tokens off; is the best available option. This removes the version information from the Server header while still returning Server: nginx.
Thanks salonichf5 for the help.
I’m already using server_tokens off.
But I realy need to not have the Server header, or at least have it generic, e.g. Server: “webserver”.
To follow up, server_tokens configurability may expand in NGINX OSS in the future, but as of today, Saloni is correct about custom strings being Plus only.