Networking HowTos
Networking HowTos

Check What Modules Were Compiled into Nginx

January 16, 2013 Linux

By using a pre-compiled version of Nginx from your distributions repositories, you generally don’t know what modules are compiled into it.
Common modules that you might need, but may not be compiled in by default, are IPv6, RealIP, SSL, and GZip compression support.
To find out what configuration parameters were used to compile Nginx (and subsequently, which modules are compiled into it), simply run the following command:

$ nginx -V

 

Sample Output:

$ nginx -V
nginx version: nginx/0.7.65
TLS SNI support enabled
configure arguments: --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log
--pid-path=/var/run/nginx.pid --lock-path=/var/lock/nginx.lock --http-log-path=/var/log/nginx/acc
ess.log --http-client-body-temp-path=/var/lib/nginx/body --http-proxy-temp-path=/var/lib/nginx/pr
oxy --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --with-debug --with-http_stub_status_module -
-with-http_flv_module --with-http_ssl_module --with-http_dav_module --with-http_gzip_static_modul
e --with-http_realip_module --with-mail --with-mail_ssl_module --with-ipv6 --add-module=/build/bu
ildd/nginx-0.7.65/modules/nginx-upstream-fair
$

You Might Also Like