简体   繁体   English

什么是最简单的 Tomcat/Apache 连接器 (Windows)?

[英]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_proxymod_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:然后您可以使用ProxyPassProxyPassReverse指令,如下所示:

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.

相关问题 区分Windows版本的最简单方法是什么? - What is the simplest way to differentiate between Windows versions? 如何在Windows中为Apache Tomcat配置xuggle - How to configure xuggle for Apache Tomcat in Windows 在Windows上使用Apache tomcat运行jsp文件 - Running jsp files with Apache tomcat on windows Apache Tomcat Windows stdout/stderr 配置 - Apache Tomcat Windows stdout/stderr configuration 如何在Windows Server上安装mod_jk(Apache Tomcat连接器)? - How to install mod_jk (Apache Tomcat Connectors) on Windows Server? Tomcat Windows 服务(Apache Commons procsrv)“用户名或密码不正确” - Tomcat Windows Service (Apache Commons procsrv) "The user name or password is incorrect" C ++:在Windows上使用C ++读写BMP文件的最简单方法是什么? - C++: What's the simplest way to read and write BMP files using C++ on Windows? 在Windows上设置共享的远程git仓库的最快捷最简单的方法是什么? - What is the quickest and simplest way of setting up a shared, remote git repo on Windows? 在WINDOWS中,如何找到Tomcat使用的Java版本? - IN WINDOWS, How do I find what Java version Tomcat is using? 如何在Windows中旋转tomcat日志? 最好的方法是什么? - How to rotate tomcat logs in Windows? What is the best method?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM