Nginx 414 Request-URI Too Large error solution

When the requested parameter is too long, nginx will report an error
insert image description here
insert image description here

We only need to add two lines to the http of nginx.confg

client_header_buffer_size 512k; 
large_client_header_buffers 4 512k;

It is found that the request will report an error again

java.lang.IllegalArgumentException: Request header is too large

Then add max-http-header-size to the springboot configuration file

server:
  max-http-header-size: 102400

Guess you like

Origin blog.csdn.net/Fire_Sky_Ho/article/details/130804214