nginx
- Setting
- large_client_header_buffers (request line cannot exceed one buffer)
- Default
- 4 8k
A 414 means the requested URL is longer than the server will accept. See the usual causes, the default nginx and Apache limits, and how to fix it.
A 414 URI Too Long error means the server refuses the request because the URL is longer than it is willing to interpret. The client sends the long URL, but the limit is set by the server. Common causes are form data sent by GET, a redirect loop that keeps growing the URL, or an attack. Shorten the URL or use POST.
Four quick questions, then a straight answer.
From your answers, this is quietly costing you traffic and nobody has the hours to chase it. Scaplet finds every affected page, drafts the fixes and tracks how AI answers mention you.
A data platform shipped 46 fixes without a ticket.
This looks handled. Re-check after a redesign, a migration or a big content push; that is when it breaks.
Your site is small and you have the time. Work through the steps on this page, starting with the pages that get the most traffic.
RFC 9110 also recommends that "all senders and recipients support, at a minimum, URIs with lengths of 8000 octets". The standard sets no hard maximum, so each server picks its own limit. Some systems call the same code 414 Request-URI Too Large.
http {
# default is 4 8k; a request line must fit in one buffer
large_client_header_buffers 4 16k;
}LimitRequestLine 16380Check the access log or DevTools for the request that returned 414 and measure its length. Look for a growing query string or repeated path segments.
If each redirect appends to the URL, the 414 is a symptom. Fix the redirect rule; see redirect loops.
Form data and filters that do not belong in the URL should be sent with POST. MDN's example is an HTML form that accidentally used the get method.
If long URLs are legitimate, increase the server limit, and check that every proxy in front allows the same length. Apache's documentation says the LimitRequestLine value should not normally be changed from the default.
Odd, very long requests from one source can be probing. Rate limit or block them instead of raising limits.
4 questions people ask next, answered from the sources on this page.
The server refused the request because the URL was longer than it is willing to process.
It is the older wording for the same condition, 414 Request-URI Too Large. MDN notes that some systems still use that name.
There is no fixed limit. RFC 9110 recommends supporting at least 8000 octets, and servers set their own limit. nginx and Apache both default to about 8 KB for the request line.
Both. The client sends the long URL, and the server's configured limit rejects it. Fixing the URL is usually better than raising the limit.
Run the free audit, then approve the fixes. Every change can be undone.