From: André Malo This module is used to reverse proxy to a backend application server
(e.g. Apache Tomcat) using the AJP13 protocol. The usage is similar to
- an HTTP reverse proxy, but uses the Balancers may also be used:Usage
ajp://
prefix:
+ an HTTP reverse proxy, but uses the ajp://
prefix:Simple Reverse Proxy
ProxyPass /app ajp://backend.example.com:8009/app
Balancer Reverse Proxy
<Proxy balancer://cluster>
@@ -84,22 +84,24 @@
</Proxy>
ProxyPass /app balancer://cluster/app
- Note that usually no + +
Note that usually no
ProxyPassReverse
directive is necessary. The AJP request includes the original host
header given to the proxy, and the application server can be expected
to generate self-referential headers relative to this host, so no
- rewriting is necessary.
-
- The main exception is when the URL path on the proxy differs from that on the + rewriting is necessary.
+ +The main exception is when the URL path on the proxy differs from that
+ on the
backend. In this case, a redirect header can be rewritten relative to the
- original host URL (not the backend ajp://
URL), for example:
+ original host URL (not the backend ajp://
URL), for
+ example:
ProxyPass /apps/foo ajp://backend.example.com:8009/foo
ProxyPassReverse /apps/foo http://www.example.com/foo
However, it is usually better to deploy the application on the backend server at the same path as the proxy rather than to take this approach.
diff --git a/docs/manual/mod/mod_proxy_ajp.xml.ja b/docs/manual/mod/mod_proxy_ajp.xml.ja index 391a524d8b..835f9c507a 100644 --- a/docs/manual/mod/mod_proxy_ajp.xml.ja +++ b/docs/manual/mod/mod_proxy_ajp.xml.ja @@ -1,7 +1,7 @@ - +