CONTROL PANELS cPanel

Disable mod_security for a single domain

Disable mod_security for a single domain

mod_security is a web application layer firewall. Mod_security supplies a filtering of request to the web server applications like Apache, IIS and Nginx.

If you want to disable mod_security for one domain, then add the following Line in. htaccess


SecFilterEngine Off

However, we can’t block mod_security2 via .htaccess on the domain basis.

The following steps can be used to disable mod_security2 rule for one domain in cPanel servers.

1. Make the directory  /usr/local/apache/conf/userdata/std/2/username/domain.com

2. Create a file vhost.conf in the above location

3. Add the following lines :

 
<IfModule mod_security2.c>
 SecRuleEngine Off
</IfModule>

That’s it!

If you like the post and wish to receive more articles from us, please like our FB page: If you like this post and wish to receive more articles from us, please like our FB page: Button

Your suggestions and feedbacks will encourage us and help to improve further, please feel free to write your comments.
For more details on our services, please drop us an E-mail at info@grepitout.com