On top of that file insert the below rulevi /usr/local/apache/conf/modsec2.user.conf
SecRule SERVER_NAME "domain.com" phase:1,nolog,allow,ctl:ruleEngine=off
On top of that file insert the below rulevi /usr/local/apache/conf/modsec2.user.conf
SecRule SERVER_NAME "domain.com" phase:1,nolog,allow,ctl:ruleEngine=off
vi /usr/local/apache/conf/httpd.conf
Example of a httpd conf in which the above code is added<IfModule mod_security2.c>
SecRuleEngine Off
</IfModule>
<VirtualHost 73.25.35.159:80>
ServerName domain.com
ServerAlias http://www.domain.com
DocumentRoot /home/user/public_html
ServerAdmin [email protected]
## User arun # Needed for Cpanel::ApacheConf
<IfModule mod_security2.c>
SecRuleEngine Off
</IfModule>