None of the third-party modules that we will be covering in this chapter are distributed with the source code. You will have to download the source code and compile it by specifying its location while compiling Nginx. You can do that by specifying the --add-module
parameters while running configure
. For example, if you downloaded the module's source code present in /opt/downloads
, you can compile it in the Nginx binary with the following code:
configure --add-module=/opt/downloads/module-folder
Some of these modules may have additional dependencies, which you will have to resolve. Please refer to the documentation of the module you are trying to install, to make sure you understand the consequences and dependencies of the module you are about to compile.
The Nginx PostgreSQL module is currently hosted at http://labs.frickle.com/nginx_ngx_postgres/ and maintained by Frickle Labs. It is an upstream module that allows direct...