nginx list installed modules

From WebHostingNeeds.com
Jump to: navigation, search

Method 1

Use

nginx -V

Command to see installed modules.

Example

[[email protected] ~]# nginx -V
nginx version: nginx/1.5.6
built by gcc 4.4.7 20120313 (Red Hat 4.4.7-3) (GCC) 
TLS SNI support enabled
configure arguments: --user=nginx --group=nginx --prefix=/usr/share --sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --pid-path=/var/log/run/nginx.pid --lock-path=/var/log/lock/subsys/nginx --with-http_ssl_module --with-http_realip_module --with-http_addition_module --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_gzip_static_module --with-http_stub_status_module --with-http_mp4_module --with-http_secure_link_module
[[email protected] ~]# 


Method 2

Run command

2>&1 nginx -V | tr -- - '\n' | grep _module


[[email protected] ~]# 2>&1 nginx -V | tr -- - '\n' | grep _module
http_ssl_module 
http_realip_module 
http_addition_module 
http_sub_module 
http_dav_module 
http_flv_module 
http_gzip_static_module 
http_stub_status_module 
http_mp4_module 
http_secure_link_module
[[email protected] ~]# 

nginx