413请求实体太大apache"tomcat". [英] 413 request entity too large apache "tomcat"

查看:201
本文介绍了413请求实体太大apache"tomcat".的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

用户在访问BOBJ tomcat URL时,AD SSO可以正常工作,当用户尝试访问Apache负载平衡器时,则会收到Request实体太大的错误消息.很少有用户会发生这种情况,他们中很少有人可以登录而没有任何问题.

User when access BOBJ tomcat URL the AD SSO works without any issues, when the user tries to access the Apache load balancer, then we get the Request entity too large error message. This is happening for few of the users and few of them can login without any issues.

设置:配置Apache负载平衡器-通过Workers.properties连接到两个tomcat服务器.

Setup: configured Apache Load Balancer - to connect to two tomcat server via Workers.properties.

在Tomcat服务器上配置了BOBJ AD SSO

BOBJ AD SSO is configured on Tomcat server

错误:请求实体太大要求的资源/BOE/portal/1712062105/BIPCoreWeb/VintelaServlet不允许带有POST请求的请求数据,或者请求中提供的数据量超出了容量限制.

Error :Request Entity Too Large The requested resource /BOE/portal/1712062105/BIPCoreWeb/VintelaServlet does not allow request data with POST requests, or the amount of data provided in the request exceeds the capacity limit.

配置打开

ApacheHttpd:LimitRequestLine 65536LimitRequestBody 0LimitRequestFieldSize 65536LimitRequestFields 10000ProxyIOBufferSize 65536工作人员:worker.ajp13.max_packet_size = 65536

Apache Httpd: LimitRequestLine 65536 LimitRequestBody 0 LimitRequestFieldSize 65536 LimitRequestFields 10000 ProxyIOBufferSize 65536 worker: worker.ajp13.max_packet_size=65536

Tomcat:

请求某人帮助解决该错误.

Request someone to help in troubleshooting the error.

推荐答案

可能的解决方案!

Apache tomcat:

Apache tomcat:

1.  modify /opt/ tomcat/config/server.xml 
    <Connector port="8080" protocol="HTTP/1.1"
                   connectionTimeout="20000"
                   redirectPort="8443"
                   maxPostSize="209715200" 
                   disableUploadTimeout="true" 
                   maxHttpHeaderSize="1006384" />

2.  modify  /tomcat/webapps/manager/WEBINFO/web.xml

       <multipart-config>
      <!-- 50MB max -->
      <max-file-size>104857600</max-file-size>
      <max-request-size>209715200</max-request-size>
      <file-size-threshold>0</file-size-threshold>
    </multipart-config>

Nginx:

1.  modify /etc/nginx/nginx.conf
2.  add this  " client_max_body_size 200M; " 

http{
client_max_body_size 200M; 
}

*  Restart tomcat server
  sudo systemctl restart tomcat
*  Restart nginx server
  sudo systemctl restart nginx

这篇关于413请求实体太大apache"tomcat".的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆