blob: 4cb63fbb9fc24d77b1a34da12b8a57d132be1f3d [file] [log] [blame]
<?xml version="1.0"?>
<!DOCTYPE document [
<!ENTITY project SYSTEM "project.xml">
]>
<document url="proxy.html">
&project;
<copyright>
Copyright 1999-2005 The Apache Software Foundation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
</copyright>
<properties>
<title>Using proxies with Tomcat</title>
<date>$Date$</date>
</properties>
<body>
<section name="Http proxy">
<p>
It easy to use the standard Http proxy of Apache when single Tomcat is connected to Apache.
<source>
&lt;Location /examples/&gt;
ProxyPass http://localhost:8080/examples/
ProxyPassReverse http://localhost:8080/examples/
&lt;/Location&gt;
</source>
</p>
</section>
<section name="AJP proxy">
<p>
The AJP proxy is a new module based on the standard Http proxy it uses AJP instead of HTTP.
<source>
&lt;Location /examples/&gt;
ProxyPass ajp://localhost:8009/examples/
&lt;/Location&gt;
</source>
</p>
</section>
<section name="AJP proxy and proxy balancer">
<p>
It is possible to use the load balancer of the mod_proxy_balancer module.
<source>
&lt;Proxy balancer://myCluster&gt;
BalancerMember ajp://localhost:8009
BalancerMember ajp://example.org:8009
&lt;/Proxy&gt;
&lt;Location /examples/&gt;
ProxyPass balancer://myCluster/examples/
&lt;/Location&gt;
</source>
</p>
</section>
<section name="Source and Configuration">
<p>
AJP proxy is integrated in httpd-2.1 and the developement and discussions take
place <a href="http://httpd.apache.org/lists.html">there</a>.
The documentation can be found there
<a href="http://httpd.apache.org/docs-2.1/mod/mod_proxy_ajp.html">mod_proxy_ajp</a>
and
<a href="http://httpd.apache.org/docs-2.1/mod/mod_proxy_balancer.html">mod_proxy_balancer</a>.
</p>
</section>
</body>
</document>