Apache JServ Protocol
ajp_百度百科 https://baike.baidu.com/item/ajp/1187933
- 外文名
- Apache JServ Protocol
- 简 称
- ajp
- 实 质
- 定向包协议
- 作 用
- 使用二进制格式来传输可读性文本
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 areverse 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.