Security News > 2021 > February > How to compile NGINX for ModSecurity support on Ubuntu Server 20.04

How to compile NGINX for ModSecurity support on Ubuntu Server 20.04
2021-02-04 20:18

Jack Wallen walks you through the manual process of installing ModSecurity for NGINX on Ubuntu Server 20.04.

ModSecurity cannot be enabled with an instance of NGINX installed with apt-get, so you must do it manually.

Make sudo make install How to compile NGINX. Unfortunately, we cannot use the NGINX installation found in the standard repositories because it must be compiled with NGINX support.

Sudo systemctl enable nginx How to test ModSecurity.

Where SERVER is the IP address or domain of your NGINX server.

Figure A. Congratulations, you now have ModSecurity running with the latest version of NGINX on Ubuntu Server 20.04.


News URL

https://www.techrepublic.com/article/how-to-compile-nginx-for-modsecurity-support-on-ubuntu-server-20-04/#ftag=RSS56d97e7

Related vendor

VENDOR LAST 12M #/PRODUCTS LOW MEDIUM HIGH CRITICAL TOTAL VULNS
Ubuntu 14 14 40 20 19 93