Apache JServ Protocol

Jump to: navigation, search

The Apache JServ Protocol (AJP) is a binary protocol that can proxy inbound requests from a web server through to an application server that sits behind the web server.

It also supports some monitoring in that the web server can ping the application server. Web implementors typically use AJP in a load-balanced deployment where one or more front-end web servers feed requests into one or more application servers. Sessions are redirected to the correct application server using a routing mechanism wherein each application server instance gets a name (called a route). In this scenario the web server functions as a reverse proxy for the application server. Lastly, AJP supports request attributes which, when populated with environment-specific settings in the reverse proxy, provides for secure communication between the reverse proxy and application server.[1][2]

AJP runs in Apache HTTP Server 1.x using the mod_jk plugin and in Apache 2.x using the provided Proxy AJP, mod_proxy and proxy balancer modules together. Implementations exist for the not-yet-released lighttpd version 1.5,[3] nginx,[4] Grizzly 2.1,[5] and the Internet Information Server.[6]

The Apache Tomcat and JBoss AS/WildFly servlet containers support AJP.

History

Alexei Kosut originally developed the Apache JServ Protocol in July 1997[7] but the version 1.0 specification was published later on July 29, 1998.[8] He also wrote the first implementations of it in the same month, with the releases of the Apache JServ Servlet Engine 0.9 and the Apache mod_jserv 0.9a (released on July 30, 1997).[9]

The specification was updated to version 1.1 on September 9, 1998.[10] Also in 1998, a revamped protocol was created and published in specification versions 2[11] and 2.1,[7] however it was never adopted.

The current specification remains at version 1.3,[12] however there is a published extension proposal.[13]

See also

References

  1. ^ "NativeSPAttributeAccess". Shibboleth Consortium. Retrieved 13 November 2017. 
  2. ^ "Apache Module mod_proxy_ajp". Apache HTTP Server Project. Retrieved 13 November 2017. 
  3. ^ "Docs ModProxyCore - Lighttpd - lighty labs". redmine.lighttpd.net. Retrieved 9 October 2017. 
  4. ^ Yao(姚伟斌), Weibin (6 October 2017). "nginx_ajp_module: support AJP protocol proxy with Nginx". Retrieved 9 October 2017 – via GitHub. 
  5. ^ "AJP". Grizzly 2.3 User's Guide. java.net. Retrieved 2013-04-29. 
  6. ^ "BonCode Apache Tomcat AJP 1.3 Connector". boncode.net. Retrieved 9 October 2017. 
  7. ^ a b Barbieri, Federico; Fumagalli, Pierpaolo; Kluft, Ian; Korthof, Ed; Mazzocchi, Stefano; Pool, Martin (June 30, 1998). "Apache JServ Protocol Version 2.1". Java Apache Project. Archived from the original on 2003-08-04. 
  8. ^ Kosut, Alexei (July 29, 1998). "Apache JServ Protocol Version 1.0". Java Apache Project. Archived from the original on 2003-04-15. 
  9. ^ "History of Changes - Apache JServ Project". Java Apache Project. Archived from the original on 2003-04-16. 
  10. ^ Kosut, Alexei (September 9, 1998). "Apache JServ Protocol Version 1.1". Java Apache Project. Archived from the original on 2003-08-04. 
  11. ^ Kluft, Ian; Korthof, Ed; Mazzocchi, Stefano (February 15, 1998). "Apache JServ Protocol Version 2". Java Apache Project. Archived from the original on 2003-08-05. 
  12. ^ "AJP Protocol Reference - AJPv13". Apache Tomcat. Retrieved 2016-08-20. 
  13. ^ "AJP Protocol Reference - AJPv13 Extension Proposal". Apache Tomcat. Retrieved 2016-08-20. 

External links