How to Build NGINX from Source on Ubuntu 18.04 LTS

1355

In this tutorial, we will build NGINX with all available modules in open source version of NGINX and we will use mainline version which is at 1.15.0 at the time of this writing.

NGINX (pronounced “engine x”) is an open source web server software designed with high concurrency in mind, that can be used as HTTP/HTTPS server, reverse proxy server, mail proxy server, software load balancer, TLS terminator, caching server…

It is an extremely modular piece of software. Even some of the seemingly “built-in” pieces of the software, such as GZIP or SSL, are actually built as modules that can be enabled and disabled during the build time. It has core (native) modules and third-party (external) modules created by the community. Right now, there are over a hundred third-party modules that we can utilize.

Written in C language, it’s very fast and lightweight piece of software. Installing NGINX from source code is relatively “easy” – download latest version of NGINX source code, configure, build and install it. You’ll need to choose whether to download the mainline or stable version, but building them is exactly the same.

Read more at HowToForge