Page 1 of 1

414 Request-URI Too Large

Posted: Mon Apr 27, 2015 2:00 pm
by sionandes
Hi brothers,

I'm having strange kind of trouble on one of my url which is very long approx 19,767 characters long & 10kb in size .. let me explain you guys.

I was getting error of :
414 Request URI Too Large
nginx
I google and found out that by editing and increase the value of "Client_header_buffer_size" & "Client_body_buffer_size" in nano /etc/nginx/nginx.conf file You can overcome it. Yes I did and increase the limits..

and then I try to refresh that page again.. but it is still showing 414 Request URI too Large error but this time nginx text is removed and it looks like its apache error now.. and I need to increase or change the limit of apache2 file too.
Request-URI Too Large

The requested URL's length exceeds the capacity limit for this server.
I google again to find out how to solve the Apache2 414 Request-URI too Large error.. and found out solution to modify the "Increase the Apache limits for limit request line and limit request field size" but I'm failed to locate the file where I can increase LimitRequestLine & LimitRequestFieldSize in Debian Wheezy 7

Can anyone please help me out how to deal with this 414 page Error.

Re: 414 Request-URI Too Large

Posted: Mon Apr 27, 2015 4:27 pm
by bestony
sionandes wrote:Hi brothers,

I'm having strange kind of trouble on one of my url which is very long approx 19,767 characters long & 10kb in size .. let me explain you guys.

I was getting error of :
414 Request URI Too Large
nginx
I google and found out that by editing and increase the value of "Client_header_buffer_size" & "Client_body_buffer_size" in nano /etc/nginx/nginx.conf file You can overcome it. Yes I did and increase the limits..

and then I try to refresh that page again.. but it is still showing 414 Request URI too Large error but this time nginx text is removed and it looks like its apache error now.. and I need to increase or change the limit of apache2 file too.
Request-URI Too Large

The requested URL's length exceeds the capacity limit for this server.
I google again to find out how to solve the Apache2 414 Request-URI too Large error.. and found out solution to modify the "Increase the Apache limits for limit request line and limit request field size" but I'm failed to locate the file where I can increase LimitRequestLine & LimitRequestFieldSize in Debian Wheezy 7

Can anyone please help me out how to deal with this 414 page Error.
Hello,Although there is no LimitRequestLine at apache2.conf,but you can add it to /etc/apache2/apache2.conf

Code: Select all

LimitRequestLine 40940
LimitRequestFieldSize 40940

Re: 414 Request-URI Too Large

Posted: Mon Apr 27, 2015 5:34 pm
by sionandes
https://www.dropbox.com/s/t77jn97dhmsja ... e.PNG?dl=0

Thanks Bestony, I added as you suggested at bottom, please see the above image link but it's still not working. still showing :

Request-URI Too Large

The requested URL's length exceeds the capacity limit for this server.
Apache/2.2.22 (Debian) Server at xxxxx.com Port 80

Re: 414 Request-URI Too Large

Posted: Tue May 31, 2016 5:41 am
by alfredalfred
But it is still showing 414 Request URI too Large error but this time nginx text is removed and it looks like its apache error now.. and I need to increase or change the limit of apache2 file too????


waleeed

Re: 414 Request-URI Too Large

Posted: Wed Jun 15, 2016 12:28 pm
by skurudo
You can try at /etc/nginx/nginx.conf

Code: Select all

large_client_header_buffers 4 16k