| <?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> |
| <Location /examples/> |
| ProxyPass http://localhost:8080/examples/ |
| ProxyPassReverse http://localhost:8080/examples/ |
| </Location> |
| </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> |
| <Location /examples/> |
| ProxyPass ajp://localhost:8009/examples/ |
| </Location> |
| </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> |
| <Proxy balancer://myCluster> |
| BalancerMember ajp://localhost:8009 |
| BalancerMember ajp://example.org:8009 |
| </Proxy> |
| <Location /examples/> |
| ProxyPass balancer://myCluster/examples/ |
| </Location> |
| </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> |