本文介绍了收到带有签名的 Ajp 无效消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是 Tomcat 7.0.29,前面是 Apache 2.2.22 modproxy.在 httpd.conf 中配置 Ajp 作为协议,在 server.xml 中配置 AjpNioProtocol.服务器启动后,日志中填充了以下消息:

I am using Tomcat 7.0.29 fronted with Apache 2.2.22 modproxy.Configured Ajp as the protocol in httpd.conf and AjpNioProtocol in server.xml.After the server starts, the logs are filled with the following message:

严重:收到带有签名 20599 的无效消息
com.apache.coyote.ajp.AjpMessage processHeader

没有请求发送到 web 或 tomcat 服务器,它仍然抛出该错误.在tomcat和apache中访问日志显示没有请求进来.导致无效消息错误的原因是什么?

There are no requests sent to the web or tomcat server and it still throws that error. Access logs in tomcat and apache show that no request is coming in.What is causing the invalid message error?

这里是配置:

  • httpd.conf

  • httpd.conf

ProxyPass /wl ajp:// ip : port /wl
ProxyPassReverse /wl ajp:// ip : port /wl

  • server.xml

  • server.xml

    <Connector port="port"
               protocol="org.apache.coyote.ajp.AjpNioProtocol"
               connectionTimeout="20000"
               acceptorThreadCount="2"
               maxThreads="1600"
               redirectPort="8443" />
    

  • 推荐答案

    对我来说,问题很简单.我正在发送 HTTP 请求,但连接器配置了 AJP 协议.我在 server.xml 中的连接器配置如下:

    For me, the problem was simple. I was sending HTTP requests but the connector was configured with AJP protocol. My connector in server.xml was configured like this:

    <Connector port="8009" protocol="AJP/1.3" redirectPort="8443"/>
    

    但是当我把它改成这样:

    But when I changed it to this:

    <Connector port="8009" protocol="HTTP/1.1" redirectPort="8443"/>
    

    错误消失了.

    希望这能帮助解决此错误的人.

    Hopefully that will help someone with this error.

    这篇关于收到带有签名的 Ajp 无效消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

    07-10 19:16