11 Jun 2020

406 Error [Not Acceptable An appropriate..]

Not Acceptable
An appropriate representation of the requested resource could not be found on this server.
406 Error in DirectAdmin

That would be because false-positive ModSecurity rules are being hit. You may either try changing ModSecurity ruleset or disabling ModSecurity altogether, for example, to change ModSecurity ruleset from owasp to comodo, execute the following commands:

cd /usr/local/directadmin/custombuild
./build set modsecurity yes
./build set modsecurity_ruleset comodo
./build modsecurity

Additionally you might need to run
For Apache

./build apache
./build rewrite_confs

For Nginx

./build nginx
./build rewrite_confs

How to Disabled ModSecurity altogether

cd /usr/local/directadmin/custombuild
./build set modsecurity no
./build set modsecurity_ruleset comodo
./build modsecurity

Additionally you might need to run:
For Apache:

./build apache
./build rewrite_confs

For Nginx

./build nginx
./build rewrite_confs
iDATA HOST. All rights reserved
Top