Monday, September 15, 2008

Integrating Apache With Tomcat




Q) why I m writting this?

Ans: I m in the office and feeling bored, there is no work left out to engage me. So, what to do. Try to bore the audience of this blog-- oh, no guys read it, I m just kidding.

Q) Tomcat is fulfilling our need, then whats the need of Apache Server?

Ans: First thing I want to clear you guys-Tomcat is a container, which has a Http connector class, which internally tomcat used to connect to the browser. But it is not providing full-fledged Server functionality. Tomcat is new as comparison to Apache. Apache is very stable code, In the age of professional web server, Apache has good market stack. It signifies that Apache is well written, fully tested and documented code.

Direct Benefits are:

  • We can use more than one tomcat for the same application for serving heavy load.
  • In the same project we can use java, perl, php, python etc.
  • Server status, Url re-writting etc. are many other features

So, How to connect Tomcat with Apache?

Install Tomcat and Apache in separte space. Download the source code of the Apache (prefer the same version of apache)