Message Boards

AJP & HTTP Connectors

thumbnail
Onochie Ojekwe, modified 9 Years ago.

AJP & HTTP Connectors

New Member Posts: 17 Join Date: 4/8/11 Recent Posts

So, I was asked by Ayobami Adewole, rather aggressively to find out what AJP means in Liferay this morning. Well, i hope this clears the air for you! I even decided to add Http connector for better understanding

Liferay's Tomcat server and the Apache Web Server either connect using the AJP connector or the HTTP connector, but none of the connectors use both the connectors at the same time. Liferay's Tomcat server enables both the connectors by default. I found out that its best to disable the connector which we are not using, and in our current COCIS Project case study, its not in use. The reason for this is to save resources on the server.

Connectors are enabled/configured in the TOMCAT_HOME\conf\server.xml file ooo!

The AJP Connector represents a connector component that communicates with a web connector via the AJP protocol usually used when you want to invisibly integrate Tomcat into an existing (or new) Apache installation, and you want Apache to handle the static content contained in the web application. http://tomcat.apache.org/tomcat-7.0-doc/config/ajp.html

For overview of the Apache JServ Protocol (AJP), you can refer to http://tomcat.apache.org/connectors-doc/ajp/ajpv13a.html

The HTTP Connector element represents a connector component that supports the HTTP/1.1 protocol. It enables Catalina to function as a stand-alone web server, in addition to its ability to execute servlets and JSP pages. http://tomcat.apache.org/tomcat-7.0-doc/config/http.html

So, Ayo... as it stands we don't use AJP Protocol for our COCIS Project, so i would suggest we just disable it for best practice, and also exclude it fro the JEFF Project.

Hope this clears the question... Sir?