If server_tokens is disabled remove the Server header

This commit is contained in:
Manuel de Brito Fontes 2018-01-15 14:29:16 -03:00
parent a1afc418e8
commit c03f253fc7

View file

@ -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;