Disable ModSecurity For Single Vhost

Some times you may find that a script trips a ModSecurity rule, but the rule is useful for general security on the box. If it’s your own site, it’s easy enough to change the code. However if it’s a customer’s site you can’t. You can however disable ModSecurity via this code in httpd.conf for the domain’s vhost. NOTE: This will disable all mod sec rules for that domain:

<IfModule mod_security.c>
     SecFilterEngine Off
     SecFilterScanPOST Off
</IfModule>
This entry was posted in cPanel Guides, Linux Guides and tagged , , , , , , , . Bookmark the permalink.

Leave a Reply