If server_tokens is disabled remove the Server header
This commit is contained in:
parent
a1afc418e8
commit
c03f253fc7
1 changed files with 3 additions and 0 deletions
|
@ -135,6 +135,9 @@ http {
|
|||
{{ end }}
|
||||
|
||||
server_tokens {{ if $cfg.ShowServerTokens }}on{{ else }}off{{ end }};
|
||||
{{ if not $cfg.ShowServerTokens }}
|
||||
more_set_headers "Server: ";
|
||||
{{ end }}
|
||||
|
||||
# disable warnings
|
||||
uninitialized_variable_warn off;
|
||||
|
|
Loading…
Reference in a new issue