Change customer Server Header without compiling it?

Sergey A. Osokin osa at freebsd.org.ru
Tue Mar 8 03:52:36 UTC 2022


Hi Blason,

On Mon, Mar 07, 2022 at 10:39:53PM -0500, blason wrote:
> Hi Team,
> 
> I have Ubuntu 20.04 and Nginx 1.20.1 installed from Official Nginx
> repository. I already have made the server_tokens to off however wondering
> if customer header can be added without recompiling it? With any modules or
> packages on ubuntu 20.04?

It's possible to use server_tokens [1] directive with the following parameters:
 - on     (enable, default);
 - off    (disable);
 - build  (enable build name) [2];
 - string (available as a part of the commercial subscription [3]).

References:
[1] https://nginx.org/en/docs/http/ngx_http_core_module.html#server_tokens
[2] https://nginx.org/en/docs/configure.html#build
[3] https://nginx.com/products/

Hope that helps.

-- 
Sergey A. Osokin



More information about the nginx mailing list