Quantcast
Channel: Control Panel – IPSERVERONE
Viewing all articles
Browse latest Browse all 144

Disable Mod Security cPanel for a domain

$
0
0
1 – Create directory at :-
[root ~]# mkdir -p /usr/local/apache/conf/userdata/std/2_4/username*/domain.com*
2 – Then create a file in it :-
[root ~]# touch /usr/local/apache/conf/userdata/std/2_4/username*/domain.com*/mod_security.conf
3 – Edit the file and add below line :-
[root ~]# vi /usr/local/apache/conf/userdata/std/2_4/username*/domain.com*/mod_security.conf

===cut===
SecRuleEngine Off
===cut===
4 – Then run this command to allow httpd.conf to include the file.
[root~]# /scripts/ensure_vhost_includes --user=username*

And if you want to remove the mod security, just remove the line.



Viewing all articles
Browse latest Browse all 144

Trending Articles