Skip to main content

How to Disable Mod-Security for a Single Domain

This article covers how to disable Mod Security for a single domain.

To disable mod-security for a single domain, do the following:

# grep custom /etc/httpd/conf/modsec2.conf Include "/usr/local/apache/conf/modsec2.custom.local.conf" 

# cat /etc/httpd/conf/modsec2.custom.local.conf SecRule SERVER_NAME "domain.com" phase:1,nolog,allow,ctl:ruleEngine=off

# /etc/init.d/httpd configtest

# /etc/init.d/httpd restart