HowTo: Find Out Nginx Web Server Version

last updated in Categories

How do I print Nginx web server version using command line option under Unix like operating systems?

You can pass the -v or -V option to display nginx web server version. The syntax is:

nginx -v

Sample outputs:

nginx version: nginx/1.2.3

The -V option shows nginx version, compiler version and configure parameters.

nginx -V

Sample outputs:

nginx version: nginx/1.2.3
built by gcc 4.4.6 20120305 (Red Hat 4.4.6-4) (GCC) 
TLS SNI support enabled
configure arguments: --without-http_autoindex_module --without-http_userid_module --without-http_auth_basic_module --without-http_fastcgi_module --without-http_empty_gif_module --with-poll_module --with-http_stub_status_module --with-http_ssl_module --with-ipv6 --with-http_geoip_module

Posted by: Vivek Gite

The author is the creator of nixCraft and a seasoned sysadmin, DevOps engineer, and a trainer for the Linux operating system/Unix shell scripting. Get the latest tutorials on SysAdmin, Linux/Unix and open source topics via RSS/XML feed or weekly email newsletter.