What is the Simplest Tomcat/Apache Connector (Windows)?
Question
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?
Solution
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.
OTHER TIPS
mod_jk
, or simply just use mod_proxy
even though it's not really a Tomcat connector.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow