• 技术文章 >常见问题

    414request怎么解决

    anonymityanonymity2020-09-14 17:57:26原创3686
    414是什么意思?

    在请求的时候使用了Get方法,由于拼接的url过长,超出服务器的限制导致出现了“414 request-uri too large”错误。

    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
    问题解决。

    以上就是414request怎么解决的详细内容,更多请关注php中文网其它相关文章!

    声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn核实处理。
    专题推荐:414request怎么解决
    上一篇:什么浏览器好用稳定速度快 下一篇:ajax怎么显示data

    相关文章推荐

    • dede全站URL静态化改造[070414更正]• dede全站URL静态化改造[070414更正]_PHP教程• 新闻联播20140414 php 智能404跳转代码,适合换域名没改变目录的网站

    全部评论我要评论

  • 取消发布评论发送
  • 1/1

    PHP中文网