Looking at some additional modules
Among the modules described in this section, some are included in the default NGINX build, but some are not. This implies that unless you specifically configured your NGINX build to include these modules (as described in Chapter 1), they will not be available to you. But remember that rebuilding NGINX to include additional modules is a relatively quick and easy process.
Website access and logging
The following set of modules allows you to configure how visitors access your website and the way your server logs requests.
Index
The Index module provides a simple directive named index
that lets you define the page that NGINX will serve by default if no filename is specified in the client request (in other words, it defines the website index
page). You may specify multiple filenames; the first file to be found will be served. If none of the specified files are found, NGINX will either attempt to generate an automatic index of the files, if...