Disable ModSecurity for a single Domain.

ModSecurity supplies an array of request filtering and other security features to the Apache HTTP Server, ModSecurity is a web application layer firewall. ModSecurity is free software.

We can disable modsecurity for a single domain.

login to the server as root.

Just create a directory:

mkdir -p /usr/local/apache/conf/userdata/std/2/username/domain.com

Then create a file:


Add the below shown contents to the file just created now.

<IfModule mod_security2.c>
SecRuleEngine Off

Save it.

Then the run the cPanel default script.

/scripts/ensure_vhost_includes –user=username








There are no revisions for this post.

Tags: , ,

No comments yet.

Leave a Reply