Apache Tomcat连接howto
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Apache Tomcat连接howto相关的知识,希望对你有一定的参考价值。
1. Install mod_jk 2. Enable module by adding to httpd.conf "LoadModule jk_module libexec/mod_jk.so" 3. Either add to the mod_jk.conf or to httpd.conf something like: <IfModule jk_module> JkShmFile var/JkShmFile JkWorkerProperty worker.list=ajp13w JkWorkerProperty worker.ajp13w.type=ajp13 JkWorkerProperty worker.ajp13w.host=localhost JkWorkerProperty worker.ajp13w.port=8009 JkMount /* ajp13w JkMount /<TOMCAT_HOSTED_WEBAPP> ajp13w JkMount /<TOMCAT_HOSTED_WEBAPP>/* ajp13w <IfDefine JK_DEFAULT_CONTEXT> JkMount /examples/* ajp13w JkMount /javadoc/* ajp13w JkMount /servlets/* ajp13w JkMount /jsp-examples/* ajp13w </IfDefine> </IfModule> 4. Make sure in your Tomcat server.xml is following entry (the port should match the one specified in step 3): <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />
以上是关于Apache Tomcat连接howto的主要内容,如果未能解决你的问题,请参考以下文章
Apache Tomcat: mod_jk 连接超时cping/cpong timeout
apache httpd端口8009后面的Docker tomcat未连接