Nginx HTTP 414 request-URI too large

On a Nginx server, when accessing a long url, i get error

HTTP 414 Request-URI Too Large
Nginx HTTP 414 request-URI too large

To fix the error, edit

vi /etc/nginx/nginx.conf

inside “http” section, find

Advertisement

large_client_header_buffers

Replace the line with

large_client_header_buffers 4 32k;

If your URL is very large, you may need to increase the 32k to higher or reduce the url length.

Large url like this mostly happend due to bad application design, so if possible try to make URL smaller.

Restart nginx

systemctl restart nginx

On older servers (centos 6, ubuntu 14, etc..), run

service nginx restart

See Apache 414 Request-URI Too Long, Nginx

Add a comment

Leave a Reply

Your email address will not be published. Required fields are marked *

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Advertisement