Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to increase Apache 2 uri length limit

Tags:

apache2

I am getting this error in my apache2 log:

[Tue Apr 06 09:00:56 2010] [error] [client A.B.C.D] request failed: URI too long (longer than 8190)

What setting can I change to increase this limit?

like image 311
kevin Avatar asked Apr 06 '10 16:04

kevin


People also ask

How do I increase the size of my URL?

Another option to increase the URL size limit is to configure the <requestLimits> element. The <requestLimits> element specifies limits on HTTP requests that are processed by the web server. These limits include the maximum size of a request, the maximum URL length, and the maximum length for a query string.

What is Uri limit?

Microsoft Internet Explorer has a maximum uniform resource locator (URL) length of 2,083 characters. Internet Explorer also has a maximum path length of 2,048 characters. This limit applies to both POST request and GET request URLs.

What does the requested URL's length exceeds the capacity limit for this server mean?

This problem might be caused by the Apache limits the set a size of a client's HTTP request-line (e.g. ) and the HTTP request header field size. So you will need to increase the default values if the request URL is this large.


1 Answers

The best answer is "don't do that". See https://boutell.com/newfaq/misc/urllength.html (link goes to Internet Archive backup) for an explanation of why.

If you need to pass that much data, use POST, not GET.

like image 129
Snowhare Avatar answered Oct 07 '22 00:10

Snowhare