apache2 - 收到带有签名的 Ajp 无效消息

标签 apache2 tomcat7 mod-proxy proxypass

我正在使用带有 Apache 2.2.22 modproxy 的 Tomcat 7.0.29。
在 httpd.conf 中将 Ajp 配置为协议(protocol),在 server.xml 中配置 AjpNioProtocol。
服务器启动后,日志中充满以下消息:

Severe: Invalid message received with signature 20599
com.apache.coyote.ajp.AjpMessage processHeader



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

这是配置:
  • httpd.conf
    ProxyPass /wl ajp:// ip : port /wl
    ProxyPassReverse /wl ajp:// ip : port /wl
    
  • 服务器.xml
    <Connector port="port" 
               protocol="org.apache.coyote.ajp.AjpNioProtocol" 
               connectionTimeout="20000" 
               acceptorThreadCount="2" 
               maxThreads="1600" 
               redirectPort="8443" />
    
  • 最佳答案

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

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

    但是当我把它改成这样时:
    <Connector port="8009" protocol="HTTP/1.1" redirectPort="8443"/>
    

    错误消失了。

    希望这将有助于解决此错误的人。

    关于apache2 - 收到带有签名的 Ajp 无效消息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11836156/

    相关文章:

    php - Apache 或 PHP 生成前置换行符

    django - apache2 允许访问子目录

    java - AH01030 : ajp_ilink_receive() can't receive header

    apache - Golang 无法识别 Close-Notifier

    子域的 Apache 2.2 和 tomcat 重定向

    apache2 - 使用 apache2 在 cgi-bin 中执行 .py 文件时出现 404 错误

    php - imagick 模块问题 - PHP

    hibernate - org.postgresql.Driver 上的 Tomcat7 ClassNotFoundException

    java - tomcat7 vs. tomcat6,它们的性能有什么显着差异吗?

    apache - 我可以在 Prefork MPM 下使用 Apache mod_proxy 作为连接池吗?