当前位置: > Linux服务器 > nginx >

nginx连接tomcat失效怎么办

时间:2016-01-07 19:15来源:linux.it.net.cn 作者:IT
 Nginx连接Tomcat失效怎么办错误提示如下:

2011-10-12 11:03:00 org.Apache.jk.common.MsgAjp processHeader

严重: BAD packet signature 18245

2011-10-12 11:03:00 org.apache.jk.common.ChannelSocket processConnection

严重: Error, processing connection

JAVA.lang.IndexOutOfBoundsException

        at java.io.BufferedInputStream.read(BufferedInputStream.java:310)

        at org.apache.jk.common.ChannelSocket.read(Unknown Source)

        at org.apache.jk.common.ChannelSocket.receive(Unknown Source)

        at org.apache.jk.common.ChannelSocket.processConnection(Unknown Source)

        at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(Unknown Source)

        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown Source)

        at java.lang.Thread.run(Thread.java:662)

nginx连接tomcat失效解决方法


因为nginx链接的端口不对,tomcat定义了两个端口

8010 是 AJP/1.3 协议的,8011 才是http协议的

nginx里面需要配8011端口才是
(责任编辑:IT)
------分隔线----------------------------
栏目列表
推荐内容