nginx “server_tokens off” does not remove the server header

To cite the docs on the server_tokens directive:

Enables or disables emitting nginx version in error messages and in the “Server” response header field.

According to the docs, it thus doesn’t prevent the generation of the Server header but only prevents the addition of the exact version. If you want to completely remove the servers header, you could use the ngx_headers_more module.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)