ProxyPass /myapp ajp://127.0.0.1:8009/myapp ProxyPassReverse /myapp ajp://127.0.0.1:8009/myapp Starting with Apache 2, mod_proxy includes an AJP protocol backend. The AJP protocol is commonly used by another Apache module, mod_jk, to communicate with application servers and servlet engines such as Tomcat and Jetty. It is now possible to replace mod_jk with the mod_proxy and mod_proxy_ajp modules, taking advantage of some of the newer functionality in mod_proxy such as load-balancing. As shown in the example, configuring AJP support in mod_proxy is as easy as replacing http:// with ajp:// in your proxy configurations (including load balancing setups). |