From 736ff9c9e37dac28145030b495995f92a4448ee8 Mon Sep 17 00:00:00 2001
From: Rich Bowen
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:
+
+
+ ProxyPass /app ajp://backend.example.com:8009/app
+
+ <Proxy balancer://cluster>
+
+ BalancerMember ajp://app1.example.com:8009 loadfactor=1
+ BalancerMember ajp://app2.example.com:8009 loadfactor=2
+ ProxySet lbmethod=bytraffic
+
+ </Proxy>
+ ProxyPass /app balancer://cluster/app
+
+ 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
+ backend. In this case, a redirect header can be rewritten relative to the
+ 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
+
Environment variables whose names have the prefix 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
+ Note that usually no
+
+ 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 Environment variables whose names have the prefix AJP_
are forwarded to the origin server as AJP request attributes
diff --git a/docs/manual/mod/mod_proxy_ajp.xml b/docs/manual/mod/mod_proxy_ajp.xml
index 8a9db925bc..c501ad2b5f 100644
--- a/docs/manual/mod/mod_proxy_ajp.xml
+++ b/docs/manual/mod/mod_proxy_ajp.xml
@@ -51,6 +51,46 @@
ajp://
prefix:
+
+
+
+ BalancerMember ajp://app2.example.com:8009 loadfactor=2
+ ProxySet lbmethod=bytraffic
+
+ ProxyPass /app balancer://cluster/app
+ ajp://
URL), for example:
+
+ ProxyPassReverse /apps/foo http://www.example.com/foo
+ AJP_
are forwarded to the origin server as AJP request attributes
--
2.40.0