406 Not Acceptable Nginx error in cPanel/WHM

406 Not Acceptable Nginx error in cPanel/WHM


406 Not Acceptable Nginx error means that a ModSecurity rule was triggered.

image 34 - 406 Not Acceptable Nginx error in cPanel/WHM

nginx error log:

2022/11/25 09:17:49 [error] 26611#26611: *123 [client 31.3.155.127] ModSecurity: Access denied with code 406 (phase 2). Matched “Operator Ge' with parameter5′ against variable TX:ANOMALY_SCORE' (Value:10′ ) [file “/etc/nginx/conf.d/modsec_vendor_configs/OWASP3/rules/REQUEST-949-BLOCKING-EVALUATION.conf”] [line “80”] [id “949110”] [rev “”] [msg “Inbound Anomaly Score Exceeded (Total Score: 10)”] [data “”] [severity “2”] [ver “OWASP_CRS/3.3.2”] [maturity “0”] [accuracy “0”] [tag “application-multi”] [tag “language-multi”] [tag “platform-multi”] [tag “attack-generic”] [hostname “1.2.3.4”] [uri “/wp-admin/admin.php”] [unique_id “166938586991.594673”] [ref “”], client: 31.3.155.127, server: stiroporlajsne-aurora.rs, request: “POST /wp-admin/admin.php?page=litespeed-cache HTTP/1.1”, host: “x.rs”, referrer: “https://x.rs/wp-admin/admin.php?page=litespeed-cache”


How to fix 406 Not Acceptable nginx error?

To disable ModSecurity in WHM go to ModSecurity Vendors and disable OWASP:

image 35 1024x517 - 406 Not Acceptable Nginx error in cPanel/WHM

Then restart Nginx.

service nginx restart
whoami
Stefan Pejcic
Join the discussion

I enjoy constructive responses and professional comments to my posts, and invite anyone to comment or link to my site.