What is the Simplest Tomcat/Apache Connector (Windows)?

我们两清 提交于 2019-12-10 10:16:02

问题


I have apache 2.2 and tomcat 5.5 running on a Windows XP machine.

Which tomcat/apache connector is the easiest to set up and is well documented?


回答1:


mod_proxy_ajp would be the easiest to use if you are using Apache 2.2. It is part of the Apache distribution so you don't need to install any additional software.

In your httpd.conf you need to make sure that mod_proxy and mod_proxy_ajp are loaded:

LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_ajp_module modules/mod_proxy_ajp.so

Then you can use the ProxyPass and ProxyPassReverse directives as follows:

ProxyPass /portal ajp://localhost:8009/portal
ProxyPassReverse /portal ajp://localhost:8009/portal

You should consult the Apache 2.2 documentation for a full catalog of the directives available.




回答2:


mod_jk, or simply just use mod_proxy even though it's not really a Tomcat connector.



来源:https://stackoverflow.com/questions/70389/what-is-the-simplest-tomcat-apache-connector-windows

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!