Control Web Panel

WebPanel => Apache => Nginx => Topic started by: thewebexpert on January 22, 2023, 10:58:46 PM

Title: ModSecurity not working with NGINX
Post by: thewebexpert on January 22, 2023, 10:58:46 PM
New CWP admin, used to only use cPanel and looking for a change to save money!

Anyhow, testing out CWP Pro, got the firewall, mod security, apache, php-fpm all working, however when I try to use NGINX/NGINX configuration with PFP-FPM, ModSecurity is not working, the moment I switch back to Apache only, Mod Security starts working.

I also looked /etc/nginx/modules and it is empty, and nginx -V does not show modsecurity.

CentOS 7, Clean Install with CWP installed, nothing complicated here, confused why it just is not working out of the box.... any help would be appreciated, I do not see any documentation about adding modules ...
Title: Re: ModSecurity not working with NGINX
Post by: overseer on January 23, 2023, 12:32:03 AM
Unfortunately, it's not free:
Quote
The NGINX ModSecurity WAF is available to NGINX Plus customers as a downloaded dynamic module at an additional cost. You can try the NGINX ModSecurity WAF free for 30 days. To purchase or add the NGINX ModSecurity WAF to an existing NGINX Plus subscription, contact the NGINX sales team.
Title: Re: ModSecurity not working with NGINX
Post by: thewebexpert on January 23, 2023, 11:32:09 AM
Perfect, thank you for the reply.