Home / How to remove nginx version from header

How to remove nginx version from header

nginx

You can remove the Nginx version from the header with the server_tokens=off directive.

  • Edit nginx.conf and add server_tokens=off; in HTTP section.

http {
....
server_tokens off;
....
}

Nginx server name is hardcoded and cannot be removed.

Leave a Reply