apache 请求实体太大错误

zpqajqem  于 2022-11-16  发布在  Apache
关注(0)|答案(1)|浏览(181)

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

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。我已经在tomcatsserver.xml中做了更改,作为

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

但是我仍然得到同样的错误,有没有人能指导我还需要在哪里做修改来避免这个问题?

xzabzqsa

xzabzqsa1#

这可能是一个有点老的线程,但以防万一,如果有人遇到这一个。
413请求实体太大
如果您的url在尝试下载大文件时遇到此错误,请按如下所示修改配置。
编辑站点的worker.properties文件。
在Ubuntu上,这通常可以在
/etc/libapache2-mod-jk/workers.properties
新增
worker..最大数据包大小=65536

相关问题