Request-URI Too Large

The circumstances that I came across the “Request-URI Too Large” Apache message is rather unique. In short, I’m loading graphs (images) on a dashboard from another website (Graphite) and the URL for the image can get pretty big because the image needs to be rendered by the Graphite render API.

Disclaimer: If you’re using forms and GET then I would definitely recommend changing the form to use POST and this solution should not be used.

The problem here is that Apache httpd has limited the amount of data that can be accepted through Request line. The default is 8192 bytes or 8 KB.

In order to overwrite this then simply add the following to virtual host or server config.

LimitRequestLine <sub>bytes</sub>

e.g. LimitRequestLine 15360

  1. No comments yet.
(will not be published)