Show the nginx version and compiled-in modules
check nginx version | does nginx support http2 | list nginx modules | is brotli enabled in nginx | nginx | version | modulesnginx -V 2>&1 | tr " " "\n" | grep -E "version|_module"nginx -V writes the version and build options to stderr, hence the 2>&1 redirect. The options are split into one per line and filtered down to the version and all --with-..._module entries. Dynamically loaded modules do not appear here, they are listed as load_module in the configuration.
Note: If nginx is not in the user’s path, use /usr/sbin/nginx -V.
Also searched as
- check nginx version
- does nginx support http2
- list nginx modules
- is brotli enabled in nginx