Free auditStart free
GuideError · HTTP status codes

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.

4 min
read
6
sources
Oct 23, 2026
updated
Scaplet Editorial Team
author
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
  2. How to get past a 421 as a visitor
  3. How to find and fix it as a developer
  4. 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 withChatGPTClaudePerplexityGoogleAI Mode
01Where a 421 comes from

What a 421 means and who causes it

RFC 9110 says the 421 (Misdirected Request) status code "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) 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.

02Explained

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.

03How 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
04Explained

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 and Google's documentation on how HTTP status codes affect its crawlers. Related: 404 Not Found and 400 Bad Request.
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. 01RFC 9110: HTTP Semanticsrfc-editor.org · checked 2026-10-25
  2. 02MDN: 421 Misdirected Requestdeveloper.mozilla.org · checked 2026-10-25
  3. 03RFC 9113: HTTP/2, Section 9.1.1 Connection Reuserfc-editor.org · checked 2026-10-25
  4. 04Apache mod_ssl: SSLVHostSNIPolicyhttpd.apache.org · checked 2026-10-25
  5. 05IANA HTTP Status Code Registryiana.org · checked 2026-10-25
  6. 06How HTTP status codes affect Google's crawlersdevelopers.google.com · checked 2026-10-25
Questions

Asked a lot.

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

01What 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.

02How 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.

03Why 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.

04Can 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.

Free · 2 minutes

Tools point. Agencies advise. This one ships.

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

Free, no card60 secondsNobody will call you
  • 46 fixes shipped without a ticket Brightpipe
  • 0→7 ChatGPT citations in six weeks Paylane