Links

- Docs Home

Configuration

- Workers.properties
- Apache
- IIS

Documentation

- AJPv13 Protocol
- HowTo and Install
- Frequently asked questions
- Changelog
- Tools
- Old JK/JK2 documentation

# The Apache Tomcat Connector

## Using proxies with Tomcat

print-friendly
version

Http proxy

> It easy to use the standard Http proxy of Apache when single Tomcat is connected to Apache.

>     <Location /examples/>
>     ProxyPass http://localhost:8080/examples/
>     ProxyPassReverse http://localhost:8080/examples/
>     </Location>

AJP proxy

> The AJP proxy is a new module based on the standard Http proxy it uses AJP instead of HTTP.

>     <Location /examples/>
>        ProxyPass ajp://localhost:8009/examples/
>     </Location>

AJP proxy and proxy balancer

> It is possible to use the load balancer of the mod_proxy_balancer module.

>     <Proxy balancer://myCluster>
>        BalancerMember ajp://localhost:8009
>        BalancerMember ajp://example.org:8009
>     </Proxy>
>     <Location /examples/>
>         ProxyPass balancer://myCluster/examples/
>     </Location>

Source and Configuration

> AJP proxy is integrated in httpd-2.1 and the developement and discussions take place there. The documentation can be found there mod_proxy_ajp and mod_proxy_balancer.

Copyright © 1999-2005, Apache Software Foundation