]> git.kaiwu.me - nginx.git/commit
Added variables support to server_tokens.
authorRuslan Ermilov <ru@nginx.com>
Tue, 15 Mar 2016 10:36:19 +0000 (13:36 +0300)
committerRuslan Ermilov <ru@nginx.com>
Tue, 15 Mar 2016 10:36:19 +0000 (13:36 +0300)
commit86927c65885157e0e9040a4a50da80d62a3aa29e
tree8cbbbd357c57e3917aba4ed6da7a18287d606334
parentb3c1abdcd8dd91ca1298c47b5abd567b9bcb3cf2
Added variables support to server_tokens.

It can now be set to "off" conditionally, e.g. using the map
directive.

An empty value will disable the emission of the Server: header
and the signature in error messages generated by nginx.

Any other value is treated as "on", meaning that full nginx
version is emitted in the Server: header and error messages
generated by nginx.
src/http/ngx_http_core_module.c
src/http/ngx_http_core_module.h
src/http/ngx_http_header_filter_module.c
src/http/ngx_http_special_response.c
src/http/v2/ngx_http_v2_filter_module.c