1
目前在我的項目,我收到以下錯誤請求實體太大誤差
1) Request entity too large error, The requested resource does not allow request Data with GET Requests, or the amount of the data provided in the request exceeds the capacity limit
2) Request entity too large error, The requested resource does not allow request Data with POST Requests, or the amount of the data provided in the request exceeds the capacity limit**
我得到這些錯誤,而我在不同的模塊提交我的網頁。我在我的項目中使用tomcat 7和apache。我已經對tomcat的server.xml進行了更改,因爲
<Connector port="8109" protocol="AJP/1.3" redirectPort="8443" maxPostSize="-1" packetSize="65536"/>
但是我仍然收到同樣的錯誤。任何人都可以指導我在哪裏需要進行更改以避免此問題?
看看這個 - http://stackoverflow.com/questions/2659952/maximum-length-of-http-get-request和http://stackoverflow.com/問題/ 2943477/is-a-max-size-post-parameter-content – Keerthivasan
@Octopus感謝您的鏈接。我已經嘗試過,但仍然沒有幫助。你能否提供一些其他的解決方案? – Priya
由於您使用的是AJP連接器,因此您必須具有反向代理,如Apache httpd。您還需要在httpd.conf中提高限制。 –