From b568fa26beb13d4ed351a08e78033d4c7ea7d176 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Malo?= Date: Wed, 9 Nov 2011 20:23:46 +0000 Subject: examples are block elements and cannot occur within

elements. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1199948 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/mod/mod_proxy_ajp.xml | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/docs/manual/mod/mod_proxy_ajp.xml b/docs/manual/mod/mod_proxy_ajp.xml index c501ad2b5f..10f25ccdbf 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,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:

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.

-- cgit v1.2.1