2014-03-28 106 views
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"/> 

但是我仍然收到同樣的錯誤。任何人都可以指導我在哪裏需要進行更改以避免此問題?

+0

看看這個 - http://stackoverflow.com/questions/2659952/maximum-length-of-http-get-request和http://stackoverflow.com/問題/ 2943477/is-a-max-size-post-parameter-content – Keerthivasan

+0

@Octopus感謝您的鏈接。我已經嘗試過,但仍然沒有幫助。你能否提供一些其他的解決方案? – Priya

+0

由於您使用的是AJP連接器,因此您必須具有反向代理,如Apache httpd。您還需要在httpd.conf中提高限制。 –

回答

0

這可能有點舊線程,但萬一有人遇到這個問題。

413請求實體太大

如果您的網址遇到嘗試如下下載大文件,修改配置時,這個錯誤。

編輯您的workers.properties該網站的文件。

在Ubuntu上,這可能會在

是典型/etc/libapache2-mod-jk/workers.properties

添加

工人。 <yoursite> .max_packet_size = 65536