[17th July 2025] Fixing the “Misdirected Request” Error on Plesk After Recent Apache Update

Reliqus Consulting

17 July 2025

Wordpress Websites

If you’re managing websites hosted on a Plesk control panel and suddenly seeing the error:

Misdirected Request
The client needs a new connection for this request as the requested host name does not match the Server Name Indication (SNI) in use for this connection.

You’re not alone. This issue has surfaced for many hosting providers and developers following a recent Apache update. In this post, we’ll walk you through:

  • What’s causing the error

  • Why it’s related to Apache and nginx

  • How to fix it quickly on your server


What Is the “Misdirected Request” Error?

This error typically occurs when your server fails to properly associate the SNI (Server Name Indication) with the correct virtual host during HTTPS communication. As a result, the server delivers the wrong SSL certificate — or doesn’t find a match at all — leading browsers to throw this error.


Why This Happened After the Apache Update

In recent Apache versions, security patches were introduced to fix several CVE (Common Vulnerabilities and Exposures) issues. While these updates improved security, they also tightened SNI handling, especially in configurations where Apache is used behind nginx as a reverse proxy — which is the default setup on many Plesk servers.

Due to this change, nginx needs to explicitly pass the correct SNI headers to Apache, otherwise Apache won’t serve the expected website, resulting in the misdirected request error.


The Fix: Add NGINX Proxy SSL Directives

To resolve the issue, you need to update the global nginx configuration on your Plesk server. This fix enables nginx to properly pass SNI information when proxying HTTPS traffic to Apache.

Step-by-step Instructions:

  1. SSH into your Plesk server as root.

  2. Run the following command to create a config file and restart nginx:

    1. echo -e "proxy_ssl_server_name on;\nproxy_ssl_name \$host;" > /etc/nginx/conf.d/fixssl.conf && service nginx restart

Here’s what this does:

  • proxy_ssl_server_name on; enables nginx to use SNI when connecting to the backend.

  • proxy_ssl_name $host; ensures the correct hostname is passed.

  1. Check your websites again. The misdirected request error should now be gone.

More information about this issue and fix is available on official Plesk support website here: https://support.plesk.com/hc/en-us/articles/33500191748887-Websites-hosted-in-Plesk-on-Ubuntu-22-04-are-not-accessible-after-a-recent-Apache-update-421-Misdirected-Request

Final Thoughts

While Apache updates are essential for keeping your server secure, they can occasionally break compatibility in layered setups like nginx → Apache. It’s always a good idea to monitor change logs and test configurations after updates, especially on production environments.

Need help managing your websites?
Feel free to reach out — we help businesses maintain smooth, secure, and scalable websites.

Latest from the blog

Mastering Real-Time Data in Google Analytics 4 (ga4) : A Comprehensive Guide

Real-time data empowers you to see exactly what users are doing on your website or app right now, enabling instant campaign validation, troublesh...

How to Drive High-ROI Retail Marketing Campaigns: 7 Essential Strategies

In retail marketing, delivering consistently high ROI Marketing Campaigns means blending strategic insight with creative execution—and never lo...

PPC  

Which Feature in the Moz Keyword Explorer Tool Provides You with a Relevance Score?

When you’re building an SEO strategy with Relevance score, it’s not enough to know how often a term is searched or how difficult it is to ran...

Harnessing the Power of Few-Shot Learning: The Key Advantage of Commercial Generative AI Models

In today’s fast-moving digital landscape, businesses and developers demand AI systems that can adapt instantly to new tasks—without costly re...