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

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

Need help with Linux Server or WordPress? We can help!

Leave a Reply

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