421 Misdirected Request Error appearing on websites using WHM and cPanel
Written by:
Neil McNulty
on
28 July 2025 11:08 AM
|
|
If you have a website showing a "421 Misdirected Request" error and you are running WHM/cPanel and the issue has been occuring only for the past 24 hours or so, as of 19th of July 2025, the issue is tied to a known bug when using EA-Nginx and other proxies services such as CloudFlare. Following an update to Apache version 2.4.64 which was introduced to address several CVEs, this error began appearing in environments using EA-NGINX or reverse proxy configurations. The issue stems from how updated Apache handles requests over reused HTTP/2 connections. An internal case (EA-13040) has been created by cPanel’s development team to investigate a permanent fix. Temporary Solution Until Patched - As of 10:15am 19/07/2025- For EA-NGINX UsersA hotfix has been released for the EA-NGINX plugin provided by cPanel. To confirm whether the updated package is installed: On AlmaLinux / RHEL-based systems run the following commands via ssh:
Look for an entry like: * Thu Jul 17 2025 Cory McIntire <cory.mcintire@webpros.com> - 1.26.3-10 On Ubuntu systems run the following commands via ssh:
- For Cloudflare UsersAs a temporary solution: Set affected domains to “DNS Only”. Disable “Full” or “Full (Strict)” SSL modes. Refer to Cloudflare’s documentation for further proxy status configuration details. - For Other Proxies or Network AppliancesIf the error persists with other third-party proxies, consider temporarily downgrading Apache and EA-NGINX to prior versions via ssh:
Final Solutions as of 2:45PM 19/07/2025This issue has been addressed in package updates. * Fri Jul 18 2025 - ea-apache24 - 2.4.64-3 - EA-13041: Rolling “ea-apache24” back to “35b37d6c7295199c5157c68145f220d9fa61ff02”: Apache v2.4.64 broke SNI (rando 421) * Fri Jul 18 2025 - ea-nginx - 1.26.3-11 - EA-13040: Remove SNI fix as we've removed the offending changes in ea-apache24 for now. If you've followed previous guidance and installed the file "/etc/nginx/conf.d/fixssl.conf," be sure to remove it before applying updates, as it can interfere with the solution.
Please update the EasyApache packages to address this problem. Note: The "/scripts/upcp" command is the universal update command for all servers. But if you need to update only the affected packages, you can use the additional commands per server, depending on their operating system. Servers with automatic updates enabled will also be updated automatically during the next update.
For CloudLinux users you can apply the following steps:CloudLinux has released an updated version of ea-apache24 to the cl-ea4-testing repository to address this issue. This can be updated to using the command below:
For servers in which the packages are updated using Imunify360 Hardened repositories, you can upgrade ea-apache24 from the beta repositories:
A couple of key points of things we have come across while helping customers:
If you have tried everything you can but still cannot fix the issue, please reach out to us for support. Futher information and updatesVisit https://support.cpanel.net/hc/en-us/articles/33553346450455-Websites-show-421-Misdirected-Request-error-while-using-EA-Nginx-or-other-proxies - RHEL/CentOS/AlamaLinux and https://support.cpanel.net/hc/en-us/articles/33724988525207-Websites-experiencing-421-Misdirected-requests-after-upgrading-to-CloudLinux-s-ea-apache24-2-4-64 - CloudLinux reference. | |
|