HTTP 421 Misdirected Request
HTTP 421 Misdirected Request means the server receiving the request is unable or unwilling to provide an authoritative response for the requested URI. A shared address or TLS certificate can cover several hostnames even though a particular server connection can serve only some of them.
When a shared connection triggers 421
A client might reuse an HTTP/2 connection for another eligible hostname. If the server receiving that request cannot serve the second authority, it can respond with 421. The user agent can retry on a different connection.
Verify the public name and upstream route
Compare the requested hostname, TLS server name and HTTP authority across the relevant connections. Inspect the virtual host and upstream selected by the origin-facing gateway. If one fresh connection succeeds and a reused connection fails, capture that difference for the site operator and check the service’s connection reuse configuration.
A two-host example
A client opens https://shop.example.com/, then uses the same HTTP/2 connection for https://help.example.com/ because both names use the same address and certificate. The service selected for the first hostname can still lack a route to the help site. The second request may receive 421. Try the help URL on a fresh connection and compare the result with the reused one. Record which hostname opened the original connection, since that value may explain the differing results.
Read the result at the right layer
With an HTTP forward proxy and an HTTPS target, a tunnel can be established successfully before a separate request inside it receives 421. Capture the response to CONNECT and the response to the HTTPS request separately. If a fresh connection still returns the error code, ask the site operator to check whether the target hostname is configured on the listener and routed to the intended backend. Include the requested hostname and a request ID or timestamp.