1.1.2 Ensure NGINX is installed from source

Information

Installing NGINX directly from source allows you to install NGINX without the use of a package manager.

Rationale:

Installing NGINX from source allows you to harden your instance of NGINX by minimizing modules. NGINX is unable to remove modules when installed using a package manager. By installing from source, you are able to minimize modules, however, some additional configuration will be required and updates will not be automated out of the box for you.

Solution

Installation depends on the operating system platform. For a source build, consult the NGINX documentation ['Building nginx from Sources'](https://docs.nginx.com/nginx/admin-guide/installing-nginx/installing-nginx-open-source/).

See Also

https://workbench.cisecurity.org/files/2275