From: André Malo Date: Wed, 9 Nov 2011 20:29:04 +0000 (+0000) Subject: examples are block elements and cannot occur within

elements. X-Git-Tag: 2.2.22~93 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c9c3c67ba1228b0beecfaee0293bf23d3cac668a;p=thirdparty%2Fapache%2Fhttpd.git examples are block elements and cannot occur within

elements. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@1199951 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/mod/mod_proxy_ajp.xml b/docs/manual/mod/mod_proxy_ajp.xml index ce625925b50..1ae2c274dce 100644 --- a/docs/manual/mod/mod_proxy_ajp.xml +++ b/docs/manual/mod/mod_proxy_ajp.xml @@ -54,13 +54,13 @@

Usage

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 ajp:// prefix: + an HTTP reverse proxy, but uses the ajp:// prefix:

Simple Reverse Proxy ProxyPass /app ajp://backend.example.com:8009/app - Balancers may also be used: +

Balancers may also be used:

Balancer Reverse Proxy <Proxy balancer://cluster>
@@ -71,22 +71,25 @@ </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 +

+ +

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:

Rewriting Proxied Path 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 + +

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.