Courses / Basic Web Application Firewall with ModSecurity
Lesson 2 of 8

Installing ModSecurity on Apache

▶

Video by HackerSploit on YouTube · 21 min. We did not make this video and we do not host it — watching it here still counts as a view for the creator.

Follow a step‑by‑step guide to add the ModSecurity module to Apache on Ubuntu. Watch for the correct package names (modsecurity‑apache) and the need to enable the module with a2enmod. Beginners often forget to restart Apache, leaving the module inactive.

Once installed, you’ll see the modsecurity.conf file appear. This file is where you turn the engine on/off and set the default rule set. In production you would keep the engine on and fine‑tune the rules later.

Start learning free

Sign in with your email, Google or GitHub. No password to remember. The same account carries your progress, your certificates and anything else you do with Nexgino later.

Sign in to continue

It takes about fifteen seconds.