1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
# diff -Nau nginx-1.30.0/src/http/ngx_http_core_module.c nginx-1.30.0_patched/src/http/ngx_http_core_module.c > nginx-without-server-header/ngx_http_core_module.c.patch
--- nginx-1.30.0/src/http/ngx_http_core_module.c 2026-04-14 10:10:11.000000000 -0300
+++ nginx-1.30.0_patched/src/http/ngx_http_core_module.c 2026-04-16 20:09:20.321382881 -0300
@@ -124,7 +124,6 @@
static ngx_conf_enum_t ngx_http_core_server_tokens[] = {
{ ngx_string("off"), NGX_HTTP_SERVER_TOKENS_OFF },
{ ngx_string("on"), NGX_HTTP_SERVER_TOKENS_ON },
- { ngx_string("build"), NGX_HTTP_SERVER_TOKENS_BUILD },
{ ngx_null_string, 0 }
};
@@ -3966,7 +3965,7 @@
ngx_conf_merge_value(conf->etag, prev->etag, 1);
ngx_conf_merge_uint_value(conf->server_tokens, prev->server_tokens,
- NGX_HTTP_SERVER_TOKENS_ON);
+ NGX_HTTP_SERVER_TOKENS_OFF);
ngx_conf_merge_ptr_value(conf->early_hints, prev->early_hints, NULL);
|