Disable mod_security with .htaccess Not Work

ehostpk

Verified User
Joined
Feb 21, 2020
Messages
18
Location
Pakistan
Hi,

/domains/yourdomain.com/public_html/.htaccess

<IfModule mod_security2.c>
SecRuleEngine Off
</IfModule>

try this method not working for single user

Globally Working with below method

cd /usr/local/directadmin/custombuild
./build set modsecurity no
./build rewrite_confs
 
OpenLiteSpeed only supports RewriteRules in .htaccess, it's not a drop-in replacement for Apache.
 
Yes, you'd need to use OpenLiteSpeed configuration directive for this in "Custom HTTPd Configuration". It's the same SecRuleRemoveById directive, as that's ModSecurity-related setting.
 
Access Level: Admin > Server Manager > Custom HTTPD Configurations > Click "openlitespeed.conf" for domain > Customize
 
Back
Top