无效的消息签名AJP 514

问题描述 投票:0回答:1

We are facing issue with the large request-header. Recently we came to know that some of the large cookies got sent to the server which goes beyond the default limit of 8192. We tried to bump max_packet_size in workers.properies(mod_jk) as well as tomcat's AJP connector(packet size) to 65536. Now request is getting throuh to the tomcat but in tomcat's Catalina.out we are getting SERVER log message:

28-Feb-2018 22:23:34.137 SEVERE [ajp-nio-7009-exec-5] org.apache.coyote.ajp.AjpMessage.processHeader Invalid message received with signature 514

我们的服务器设置流程类似于:ELB - >(https) - > httpd - > mod_jk + AJP13 - >(http) - > tomcat。 Tomcat版本:8.0.20 httpd版本:2.4.27 mod_jk版本:1.2.37请帮我们找到根本原因。

tomcat8 mod-jk ajp
1个回答
0
投票

我们必须使用以下配置:

server.xml
    packetSize="32768"
    socket.appReadBufSize="32768"

httpd.conf
    LimitRequestFieldsize 32768

workers.properties
    worker.app-7009.max_packet_size=32768

socket.appReadBufSize是重要的属性,没有这个tomcat的AJP连接器无法读取发布的数据包。

© www.soinside.com 2019 - 2024. All rights reserved.