How to disable modsecurity for nginx

drukpa

Verified User
Joined
Aug 30, 2019
Messages
20
The web server is nginx_apache and am using modsecurity.

When I check the configuration of apache and nginx, both of them include the modsecurity rules and I think it's redundant for both of them to process the rules. Also, one of my rules only work with apache, so when I use the rule, nginx fails to start.

How can I disable nginx from including modsecurity rules? I could edit the nginx configuration, but on the next build update/ rewrite_confs, it resets and includes it again.
 
it is better to work on nginx

mod security on apache creates a lot of overhead and can span a lot of pache processes that uses full core just to process then on nginx is super light the same as with litespeed
 
Thank you for the advice. However, when I build/update my webserver and if I choose modsecuirty, it still includes the modsecurity rules in apache as well as nginx.
I only want it included in one, not both.

Any idea on how to achieve this? Very new to DA.
 
Back
Top