Mastering Nginx

(Ron) #1

Installing NGINX and Third-Party Modules


[ 20 ]

--with-http_gunzip_module \
--with-http_secure_link_module \
--with-http_stub_status_module \
--add-module=${BUILD_DIR}/ngx_devel_kit-0.2.17 \
--add-module=${BUILD_DIR}/ngx_lua-0.7.9

Following a lot of output showing what configure was able to find on your system,


a summary is printed out as follows:


Configuration summary
+ using PCRE library: /home/builder/build/pcre-8.32
+ using OpenSSL library: /home/builder/build/openssl-1.0.1c
+ md5: using OpenSSL library
+ sha1: using OpenSSL library
+ using system zlib library

nginx path prefix: "/opt/nginx"
nginx binary file: "/opt/nginx/sbin/nginx"
nginx configuration prefix: "/opt/nginx/conf"
nginx configuration file: "/opt/nginx/conf/nginx.conf"
nginx pid file: "/opt/nginx/logs/nginx.pid"
nginx error log file: "/opt/nginx/logs/error.log"
nginx http access log file: "/opt/nginx/logs/access.log"
nginx http client request body temporary files: "/home/www/tmp/
client_body_temp"
nginx http proxy temporary files: "/home/www/tmp/proxy_temp"
nginx http fastcgi temporary files: "/home/www/tmp/fastcgi_temp"

As you can see, configure found all the items we were looking for, and acknowledged


our preferences for certain paths. Now, you can build your nginx and install it, as
mentioned at the beginning of the chapter.


Summary


This chapter has introduced you to the various modules available for NGINX.
By compiling your own binary, you are able to tailor what functionality your nginx


will provide. Building and installing software will not be new to you, so not a lot of


time was spent on creating a build environment or making sure that all dependencies
were present. An NGINX installation should be one that fits your needs, so feel free


to enable or disable modules as you see fit.


Next up we will present an overview of basic NGINX configuration, to get a feel for


how to configure NGINX in general.

Free download pdf