How to Fix the "421 Misdirected Request" Error (Nginx, Apache, Plesk)
All dispatches
IT News2025-07-174 min read

How to Fix the "421 Misdirected Request" Error (Nginx, Apache, Plesk)

🐑
Rodney
Head of Tech Realism · Black Sheep Support
Share this dispatch

July 17, 2025

Your Website Is Down with a "421 Misdirected Request" Error. Here's Why.

Woke up this morning to find your website suddenly offline? If you're seeing a "421 Misdirected Request" error, you're in the right place. This issue is affecting a huge number of servers globally, typically those using Nginx as a reverse proxy in front of Apache—a very common setup for Plesk on Ubuntu 22.04.

The problem isn't your fault. It was triggered by a recent security update to Apache that changed how it handles SSL/TLS connections. Don't worry, this guide provides three clear methods to fix the error and get your site back online immediately.

What is the "421 Misdirected Request" Error?

In simple terms, this error is an SSL handshake failure. Your user's browser tries to connect securely to your website via Nginx. Nginx then tries to pass this connection to the Apache backend.

However, due to the recent Apache update (version 2.4.58-1ubuntu8.6 ) , Apache now has stricter security rules. It demands to know the exact hostname of the site it's serving via a technology called SNI (Server Name Indication) . Because Nginx wasn't forwarding this specific piece of information, Apache rejects the connection, resulting in the "421" error.

The fix is to tell Nginx to correctly pass this SNI information to Apache.

 3 Fast Methods to Fix the "421 Misdirected Request" Error

Before You Begin: A Quick Precaution

The methods below involve editing your server's core configuration files. It is always highly recommended to have a recent, full server backup before making these kinds of changes.

While this is a well-documented solution for this specific issue, every server environment can have unique configurations. Please read through the steps carefully to ensure you are comfortable with them before proceeding.

Plesk have posted method 2 below in their support articles here.

Method 1: The Plesk GUI (Recommended for Plesk Users)

This is the safest and easiest method if your server is managed by Plesk, as it avoids the command line entirely.

Log in to your Plesk panel.

Go to Tools & Settings in the left-hand menu.

Under the "General Settings" group, click on Apache & Nginx Settings .

Scroll down to find the text box labeled Additional Nginx directives .

Paste the following two lines into that box: Method 2: The One-Line Command (Fastest for CLI Users) This method is for experienced users who are comfortable on the command line and want the quickest possible fix. Connect to your server via SSH .

Execute the following single command. It will create the necessary file and restart Nginx in one step. echo -e "proxy_ssl_server_name on;\nproxy_ssl_name $host;" > /etc/nginx/conf.d/fixssl.conf && service nginx restart Method 3: Manual File Creation (The Cautious CLI Approach) This method achieves the same result as Method 2, but allows you to manually create and edit the file, which some users prefer. Connect to your server via SSH .

Open a new configuration file using a text editor like nano : sudo nano /etc/nginx/conf.d/fixssl.conf How Black Sheep Support Can Help Solving complex technical problems like this is a crucial part of managing a digital presence, but it's just one piece of the puzzle. At Black Sheep Support, we partner with businesses to ensure their entire digital strategy is robust, secure, and aligned with their long-term goals. While you're handling the immediate technical fixes, we focus on the bigger picture: Strategic Technology Consulting: We help you navigate the complex digital landscape, ensuring you have the right technology and processes in place for sustainable growth.

Proactive Risk Management: We help you identify potential technical and security vulnerabilities across your digital ecosystem before they become critical problems.

Process & Policy Development: We assist in creating clear internal policies that empower your team to use technology safely and effectively.

Data Security & Compliance: We provide guidance on ensuring your data handling practices are secure and compliant, minimising business risk.

To get started, we offer a free consultation where we'll review your current setup and tailor a strategy that balances strong security with effective AI use.

Contact Black Sheep Support today to protect your sensitive information and confidently harness the power of AI—without the fear of accidental data leaks.


To take the next step and protect your business

Book a Discovery Call

Back to all dispatchesEnd of Intelligence · BSS Digital Dispatch