1. 首页 > 综合百科 > 414request怎么解决

414request怎么解决

The HTTP protocol does not place any a priori limit on the length of a URI. Servers MUST be able to handle the URI of any resource they serve, and SHOULD be able to handle URIs of unbounded length if they provide GET-based forms that could generate such URIs. A server SHOULD return 414 (Request-URI Too Long) status if a URI is longer than the server can handle (see section 10.4.15).

Note: Servers ought to be cautious about depending on URI lengths above 255 bytes, because some older client or proxy implementations might not properly support these lengths.

解决方法:

1、nginx服务器修改

在nginx的nginx.conf修改如下参数的:

client_header_buffer_size 512k; large_client_header_buffers 4 512k;登录后复制

2、tomcat服务器修改

在Apache的httpd.conf(路径:Apache\conf)配置文件中(直接加就可以)

加的时候位置要注意

LimitRequestLine 40940
LimitRequestFieldSize 40940
问题解决。