Disable Version in Nginx

๐Ÿ“† ยท

To disable the version in Nginx, you can use the server_tokens directive.

server_tokens off;

Add this line to the http block in your nginx.conf file.

http {
server_tokens off;
}

This will disable the version in the Server header as well as on error pages. More about them here โ†—๏ธ