请求实体太大的错误

时间:2014-03-28 13:47:11

标签: java apache apache2 tomcat7

目前在我的项目中,我收到以下错误

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。我已将tomcats server.xml中的更改改为

<Connector port="8109" protocol="AJP/1.3" redirectPort="8443" maxPostSize="-1" packetSize="65536"/>

但我仍然遇到同样的错误。任何人都可以指导我在哪里进行更改以避免此问题吗?

1 个答案:

答案 0 :(得分:0)

这可能是一个有点老的线程,但万一有人遇到这个。

  

413请求实体太大

如果您的网址在尝试下载大文件时遇到此错误,请按以下方式修改配置。

修改网站的 workers.properties 文件。

在Ubuntu上,这通常可以在

  

/etc/libapache2-mod-jk/workers.properties

添加

  

工作者LT; yoursite&GT; .max_packet_size = 65536