首頁  >  文章  >  414request怎麼解決

414request怎麼解決

anonymity
anonymity原創
2019-05-08 10:51:2311129瀏覽

414是什麼意思?

在請求的時候使用了Get方法,由於拼接的url過長,超出伺服器的限制導致出現了「414 request-uri too large」錯誤。

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 server handle (oo Long) status if a URI is longer than the server server handle (s.

      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 older client or proxy implementations might not properly support these len#n.##len#>##>#>#a>#bv

#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怎麼解決問題解決。

以上是414request怎麼解決的詳細內容。更多資訊請關注PHP中文網其他相關文章!

陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn