Connecting to Tomcat


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).




Apache(c) Phrase Book(c) Essential Code and Commands
Apache Phrasebook
ISBN: 0672328364
EAN: 2147483647
Year: 2006
Pages: 254

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net