1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
|
<html><head><META http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><title>The Apache Tomcat Connector - Using proxies with Tomcat</title><link rel="stylesheet" type="text/css" href="./style.css"></head><body vlink="#525D76" alink="#525D76" link="#525D76" text="#000000" bgcolor="#ffffff"><table cellspacing="4" width="100%" border="0"><!--PAGE HEADER--><tr><td colspan="2"><!--TOMCAT LOGO--><a href="http://tomcat.apache.org/"><img border="0" alt="Apache Tomcat" align="left" src="./images/tomcat.gif"></a><!--APACHE LOGO--><a href="http://www.apache.org/"><img border="0" alt="Apache Logo" align="right" src="http://www.apache.org/images/asf-logo.gif"></a></td></tr><!--HEADER SEPARATOR--><tr><td colspan="2"><hr size="1" noshade="noshade"></td></tr><tr><!--LEFT SIDE NAVIGATION--><td nowrap="true" valign="top" width="20%"><p><strong>Links</strong></p><ul><li><a href="index.html">Docs Home</a></li></ul><p><strong>Configuration</strong></p><ul><li><a href="config/workers.html">Workers.properties</a></li><li><a href="config/apache.html">Apache</a></li><li><a href="config/iis.html">IIS</a></li></ul><p><strong>Documentation</strong></p><ul><li><a href="common/ajpv13a.html">AJPv13 Protocol</a></li><li><a href="howto/index.html">HowTo and Install</a></li><li><a href="faq.html">Frequently asked questions</a></li><li><a href="changelog.html">Changelog</a></li><li><a href="common/tools.html">Tools</a></li><li><a href="http://tomcat.apache.org/connectors-doc-archive/jk2/index.html">Old JK/JK2 documentation</a></li></ul></td><!--RIGHT SIDE MAIN BODY--><td align="left" valign="top" width="80%"><table cellspacing="4" width="100%" border="0"><tr><td valign="top" align="left"><h1>The Apache Tomcat Connector</h1><h2>Using proxies with Tomcat</h2></td><td nowrap="true" valign="top" align="right"><small><a href="printer/proxy.html"><img alt="Printer Friendly Version" border="0" src="./images/printer.gif"><br>print-friendly<br>version
</a></small></td></tr></table><table width="100%" cellpadding="2" cellspacing="0" border="0"><tr><td bgcolor="#525D76"><font face="arial,helvetica.sanserif" color="#ffffff"><a name="Http proxy"><strong>Http proxy</strong></a></font></td></tr><tr><td><blockquote>
<p>
It easy to use the standard Http proxy of Apache when single Tomcat is connected to Apache.
<div class="example"><pre>
<Location /examples/>
ProxyPass http://localhost:8080/examples/
ProxyPassReverse http://localhost:8080/examples/
</Location>
</pre></div>
</p>
</blockquote></td></tr></table><table width="100%" cellpadding="2" cellspacing="0" border="0"><tr><td bgcolor="#525D76"><font face="arial,helvetica.sanserif" color="#ffffff"><a name="AJP proxy"><strong>AJP proxy</strong></a></font></td></tr><tr><td><blockquote>
<p>
The AJP proxy is a new module based on the standard Http proxy it uses AJP instead of HTTP.
<div class="example"><pre>
<Location /examples/>
ProxyPass ajp://localhost:8009/examples/
</Location>
</pre></div>
</p>
</blockquote></td></tr></table><table width="100%" cellpadding="2" cellspacing="0" border="0"><tr><td bgcolor="#525D76"><font face="arial,helvetica.sanserif" color="#ffffff"><a name="AJP proxy and proxy balancer"><strong>AJP proxy and proxy balancer</strong></a></font></td></tr><tr><td><blockquote>
<p>
It is possible to use the load balancer of the mod_proxy_balancer module.
<div class="example"><pre>
<Proxy balancer://myCluster>
BalancerMember ajp://localhost:8009
BalancerMember ajp://example.org:8009
</Proxy>
<Location /examples/>
ProxyPass balancer://myCluster/examples/
</Location>
</pre></div>
</p>
</blockquote></td></tr></table><table width="100%" cellpadding="2" cellspacing="0" border="0"><tr><td bgcolor="#525D76"><font face="arial,helvetica.sanserif" color="#ffffff"><a name="Source and Configuration"><strong>Source and Configuration</strong></a></font></td></tr><tr><td><blockquote>
<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>
</blockquote></td></tr></table></td></tr><!--FOOTER SEPARATOR--><tr><td colspan="2"><hr size="1" noshade="noshade"></td></tr><!--PAGE FOOTER--><tr><td colspan="2"><div align="center"><font size="-1" color="#525D76"><em>
Copyright © 1999-2005, Apache Software Foundation
</em></font></div></td></tr></table></body></html>
|