How to Disable Mod_Security in the Custom Http Config File
NOTE: You need to be the server admin in order to disable the mod_security in the custom http config file.
First log into the Direct Admin control panel using admin credential. Then click on “Custom HTTPD Configurations”
![](https://storage.crisp.chat/users/helpdesk/website/0e35a1b5-ce97-4d12-a27e-1bbafd0ae641/ee5de92a-77b7-4d8f-8960-aa107d8100c3.png)
In the page, search for the domain name and add the following lines to the blank space.
<LocationMatch /*>
<IfModule mod_security2.c>
SecRuleEngine Off
</IfModule>
</LocationMatch>
First log into the Direct Admin control panel using admin credential. Then click on “Custom HTTPD Configurations”
![](https://storage.crisp.chat/users/helpdesk/website/0e35a1b5-ce97-4d12-a27e-1bbafd0ae641/ee5de92a-77b7-4d8f-8960-aa107d8100c3.png)
In the page, search for the domain name and add the following lines to the blank space.
<LocationMatch /*>
<IfModule mod_security2.c>
SecRuleEngine Off
</IfModule>
</LocationMatch>
Updated on: 08/11/2018
Thank you!