[英]What is the Simplest Tomcat/Apache Connector (Windows)?
I have apache 2.2 and tomcat 5.5 running on a Windows XP machine.我在 Windows XP 机器上运行 apache 2.2 和 tomcat 5.5。
Which tomcat/apache connector is the easiest to set up and is well documented?哪个 tomcat/apache 连接器最容易设置并且有据可查?
mod_proxy_ajp
would be the easiest to use if you are using Apache 2.2.如果您使用的是 Apache 2.2,
mod_proxy_ajp
将是最容易使用的。 It is part of the Apache distribution so you don't need to install any additional software.它是 Apache 发行版的一部分,因此您无需安装任何其他软件。
In your httpd.conf
you need to make sure that mod_proxy
and mod_proxy_ajp
are loaded:在您的
httpd.conf
,您需要确保mod_proxy
和mod_proxy_ajp
已加载:
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和ProxyPassReverse指令,如下所示:
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.您应该查阅 Apache 2.2 文档以获取可用指令的完整目录。
mod_jk
, or simply just use mod_proxy
even though it's not really a Tomcat connector. mod_jk
,或者只是使用mod_proxy
即使它不是真正的 Tomcat 连接器。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.