# Nginx + apache + ssl = 421 misdirected request

**URL:** <https://forum.hestiacp.com/t/nginx-apache-ssl-421-misdirected-request/19502>\
**Category:** Web\
**Created:** [July 12, 2025, 12:24pm UTC](https://forum.hestiacp.com/t/nginx-apache-ssl-421-misdirected-request/19502 "2025-07-12T12:24:48Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![maurice](https://forum.hestiacp.com/letter_avatar_proxy/v4/letter/m/d6d6ee/32.png) [@maurice](https://forum.hestiacp.com/u/maurice)\
**Post date:** [July 12, 2025, 12:24pm UTC](https://forum.hestiacp.com/t/nginx-apache-ssl-421-misdirected-request/19502/1 "2025-07-12T12:24:48Z")

</div>

Hi all,

Using the wonderful hestiacp with nginx + apache2

It seems that after an apt update & apt upgrade, websites now display an error 421:

> # 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.

If I do make a webrequest, I can see it hits the apache log for that domain, however in the apache errorlog for that domain I also see this:

> AH02032: Hostname 10.0.0.120 (default host as no SNI was provided) and hostname xxxxx provided via HTTP have no compatible SSL setup

Because of this SNI message, I tried to edit the nginx configuration for that domain, adding a few lines:

> proxy\_set\_header SNI $host;  
> proxy\_ssl\_verify off;  
> proxy\_ssl\_server\_name on;

The 421 error is now gone, but I am not getting the website of the host, but the default “success, Your new web server is ready to use” page and I can’t seem to find this request in apache logs.

Any thoughts? Help welcome. Thank you.

---

_[View the full topic](https://forum.hestiacp.com/t/nginx-apache-ssl-421-misdirected-request/19502)._
