---

How to Install ModSecurity with Nginx on Ubuntu 20.04

In the following tutorial, you will learn how to install ModSecurity with Nginx on Ubuntu 20.04.

ModSecurity, often referred to as Modsec, is a free, open-source web application firewall (WAF). ModSecurity was created as a module for the Apache HTTP Server. However, since its early days, the WAF has grown and now covers an array of HyperText Transfer Protocol request and response filtering capabilities for various platforms such as Microsoft IIS, Nginx, and of course, Apache.