# 421 Misdirected Request

> A 421 means the request reached a server that cannot answer for that hostname. See the HTTP/2 connection reuse cause, the Apache SNI fix and what a visitor can try.

Canonical: https://scaplet.com/errors/http/421

Guide Error · HTTP status codes

A 421 means the request reached a server that cannot answer for that hostname. See the HTTP/2 connection reuse cause, the Apache SNI fix and what a visitor can try.

4 min

read

6

sources

Oct 23, 2026

updated

Scaplet Editorial Team

author

421 4xx · Client error

The short answer

A 421 Misdirected Request error means the request reached a server that cannot give an authoritative answer for that hostname. It is common when a browser reuses one HTTPS connection for several hostnames and the server's virtual hosts are set up differently. Reload to open a new connection; site owners should align their SSL and virtual host settings.

1. [What a 421 means and who causes it](#what-a-421-means-and-who-causes-it)
2. [How to get past a 421 as a visitor](#how-to-get-past-a-421-as-a-visitor)
3. [How to find and fix it as a developer](#how-to-find-and-fix-it-as-a-developer)
4. [What it does to SEO](#what-it-does-to-seo)

30-second check

## Where does your site stand?

Four quick questions, then a straight answer.

1/4Have you checked your own site for this?

Summarize this page with [ChatGPT](https://chatgpt.com/?hints=search&q=Summarize%20https%3A%2F%2Fscaplet.com%2Ferrors%2Fhttp%2F421%20(%22421%20Misdirected%20Request%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Claude](https://claude.ai/new?q=Summarize%20https%3A%2F%2Fscaplet.com%2Ferrors%2Fhttp%2F421%20(%22421%20Misdirected%20Request%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Perplexity](https://www.perplexity.ai/search?q=Summarize%20https%3A%2F%2Fscaplet.com%2Ferrors%2Fhttp%2F421%20(%22421%20Misdirected%20Request%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [![Google](/logos/ai/google-color.svg)AI Mode](https://www.google.com/search?udm=50&q=Summarize%20https%3A%2F%2Fscaplet.com%2Ferrors%2Fhttp%2F421%20(%22421%20Misdirected%20Request%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.)

_01_Where a 421 comes from

## What a 421 means and who causes it

RFC 9110 says the 421 (Misdirected Request) [status code](/glossary/http-status-codes) "indicates that the request was directed at a server that is unable or unwilling to produce an authoritative response for the target URI". An origin server or gateway sends it to reject a target URI that "does not match an origin for which the server has been configured" or that "does not match the connection context over which the request was received". It adds that "A proxy MUST NOT generate a 421 response."

Cause

### Connection reused across hostnames with different virtual host settings

Where to look

Apache or nginx virtual host config for each hostname

Fix

Give hosts that share an IP and port the same certificate, protocol and cipher settings

Cause

### Host header names a site this server does not serve

Where to look

Host header and ServerName or server_name

Fix

Add the name, or route it to the right server

Cause

### Apache SNI policy blocks a mismatch

Where to look

SSLVHostSNIPolicy in Apache

Fix

Align vhost SSL settings; do not set the insecure policy as a shortcut

Cause

### CDN or gateway sends traffic to the wrong origin

Where to look

Origin settings at the CDN

Fix

Point the hostname at an origin that serves it

A client that gets one "MAY retry the request, whether or not the request method is idempotent, over a different connection". MDN describes a typical case: with a wildcard certificate (*.example.com), a browser may reuse one connection for abc.example.com and def.example.com, and the server may answer 421 for one of them. RFC 9113 ([HTTP/2](/glossary/http-2)) says connections MAY be reused for requests with different URI authority components, and that a server that does not wish clients to reuse connections can send a 421 (Misdirected Request) in response. So the cause is usually the origin or a gateway in front of it, and the trigger is how the browser reuses connections.

_02_Explained

## How to get past a 421 as a visitor

Reload the page. A reload may open a new connection, and RFC 9110 allows a client to retry a 421 over a different connection. If the error stays, close the browser tab, try a private window or another browser, and check that the address is typed correctly. If it fails for everyone, the site owner has to fix the server configuration.

_03_How it works

## How to find and fix it as a developer

1. 1

### Compare the hostnames

Find which hostname returns 421 and which one the connection was first opened for. A hostname that works on a fresh connection but fails after another site was visited points to connection reuse.
2. 2

### Check Apache's SNI policy

The Apache docs say SSLVHostSNIPolicy sets the policy for checking that the virtual host named by the Host header is compatible with the one picked by SNI, and that an incompatible request gets "an HTTP error response with status code 421". It is available in httpd 2.4.66 and later.
3. 3

### Align the SSL settings

The default secure policy and the authonly policy compare specific parts of the SSL configuration: the server certificate and key plus protocol and cipher restrictions, and client verification and authentication settings. Make them identical for virtual hosts that share an IP and port.
4. 4

### Check the Host header and server names

Confirm ServerName and ServerAlias (Apache) or server_name (nginx) include every hostname that the certificate covers and that you want served.
5. 5

### Check the gateway

If a CDN or load balancer sits in front, test the origin directly with curl --resolve to see whether the 421 comes from the origin.

Test the origin for one hostname with curl

```
curl -i --resolve abc.example.com:443:203.0.113.10 https://abc.example.com/
```

Apache: the SNI policy directive (httpd 2.4.66 and later)

```
# Keep the default secure policy and make vhost SSL settings match. SSLVHostSNIPolicy secure
```

**Do not use the insecure policy to hide the error**Apache's documentation says the insecure policy allows all HTTP requests regardless of virtual host, and that such a configuration may be vulnerable to CVE-2025-23048.

_04_Explained

## What it does to SEO

A 421 is a 4xx response. Google's documentation says it does not index URLs that return a 4xx status code and treats all 4xx errors except 429 the same way. A 421 means the server would not answer for that URL on that connection, so a crawler that receives it gets no page. See [4xx errors](/seo-issues/4xx-errors) and Google's documentation on how HTTP status codes affect its crawlers. Related: [404 Not Found](/errors/http/404) and [400 Bad Request](/errors/http/400).

Sources · 6

## Every fact, linked and dated.

Official docs first. The date is when we last opened each page.

- rfc-editor.org
- mozilla.org
- apache.org
- iana.org
- google.com

1. 01 [RFC 9110: HTTP Semantics](https://www.rfc-editor.org/rfc/rfc9110.html) rfc-editor.org · checked 2026-10-25
2. 02 [MDN: 421 Misdirected Request](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/421) developer.mozilla.org · checked 2026-10-25
3. 03 [RFC 9113: HTTP/2, Section 9.1.1 Connection Reuse](https://www.rfc-editor.org/rfc/rfc9113.html) rfc-editor.org · checked 2026-10-25
4. 04 [Apache mod_ssl: SSLVHostSNIPolicy](https://httpd.apache.org/docs/2.4/mod/mod_ssl.html#sslvhostsnipolicy) httpd.apache.org · checked 2026-10-25
5. 05 [IANA HTTP Status Code Registry](https://www.iana.org/assignments/http-status-codes) iana.org · checked 2026-10-25
6. 06 [How HTTP status codes affect Google's crawlers](https://developers.google.com/crawling/docs/troubleshooting/http-status-codes) developers.google.com · checked 2026-10-25

Questions

## Asked a lot.

4 questions people ask next, answered from the sources on this page.

_01_ What does the 421 status code mean?

The request reached a server that cannot or will not give an authoritative answer for the hostname in the URL.

_02_ How can I fix a 421 Misdirected Request?

Reload to open a new connection. If you run the site, make the SSL settings of virtual hosts on the same IP and port match, and check that the Host header matches a configured name.

_03_ Why does a wildcard certificate cause 421?

A browser may reuse one connection for several hostnames the certificate covers. If the server treats those hostnames differently, it answers 421 for one of them.

_04_ Can a proxy send a 421?

No. RFC 9110 says a proxy MUST NOT generate a 421. An origin server or a gateway acting for the origin sends it.

## Keep learning

[All errors](/errors)

[Learn HTTP 400 Bad Request HTTP status codes](/errors/http/400) [Related 4xx errors Status codes and links](/seo-issues/4xx-errors) [Read next 403 Forbidden HTTP status codes](/errors/http/403) [Do Run a free site audit Free, about two minutes](/site-audit)

More in HTTP status codes
[101 Switching Protocols](/errors/http/101) [402 Payment Required](/errors/http/402) [403 Forbidden](/errors/http/403) [404 Not Found](/errors/http/404) [406 Not Acceptable](/errors/http/406) [411 Length Required](/errors/http/411) [413 Request Entity Too Large](/errors/http/413) [414 URI Too Long](/errors/http/414) [415 Unsupported Media Type](/errors/http/415) [416 Range Not Satisfiable](/errors/http/416) [417 Expectation Failed](/errors/http/417) [418 I'm a Teapot](/errors/http/418) [421 Misdirected Request](/errors/http/421) [422 Unprocessable Content (Unprocessable Entity)](/errors/http/422) [423 Locked](/errors/http/423) [424 Failed Dependency](/errors/http/424) [425 Too Early](/errors/http/425) [426 Upgrade Required](/errors/http/426) [428 Precondition Required](/errors/http/428) [429 Too Many Requests](/errors/http/429) [451 Unavailable For Legal Reasons](/errors/http/451) [502 Bad Gateway](/errors/http/502) [503 Service Unavailable](/errors/http/503) [504 Gateway Timeout](/errors/http/504)

Terms on this page
[HTTP status codes](/glossary/http-status-codes) [HTTP/2](/glossary/http-2)

Free · 2 minutes

## Tools point. Agencies advise. _This one ships._

Run the free audit, then approve the fixes. Every change can be undone.

[Audit my site free](/site-audit)

Free, no card 60 seconds Nobody will call you

- **46** fixes shipped without a ticket Brightpipe
- **0→7** ChatGPT citations in six weeks Paylane
