How to Check the Nginx Version: nginx -v, curl, apt, and Hiding the Version
All ways to check the Nginx version — nginx -v and -V for build modules, curl via HTTP header, apt and dpkg for package version, and hiding the version with server_tokens off.