Step 1: Create a directory
Code:
mkdir -p /usr/local/apache/conf/userdata/std/2/username/domain.com
Replace "username" with the domain's username
Replace "domain.com" with the domain name
Step 2: Add an include file for that domain
1. Run:
Code:
nano /usr/local/apache/conf/userdata/std/2/username/domain.com/mod_security2.conf
Replace "username" with the domain's username
Replace "domain.com" with the domain name
2. Add the following code to mod_security2.conf:
Code:
<IfModule mod_security2.c>
SecRuleEngine Off
</IfModule>
3. Save and Exit nano
Step 3: Run the following to add that include file for that particluar domain to httpd.conf
Code:
/scripts/ensure_vhost_includes --user=username
Replace "username" with the domain's username
Step 4: If step 3 doesn't restart apache, restart apache.
Run:
Code:
/sbin/service httpd restart