Hi guys Why is Apache web server and Tomcat are integrated for certain applications? We can use Tomcat6 servlet container and use it independently in our application. Then why do we need to integrate it with The Apache Web server? What benefits does it entail?
While Tomcat is fine for serving static pages, there's a lot more an Apache httpd can do if used in conjunction with Tomcat - handling SSL termination, providing load balancing, URL rewriting, serving dynamic content in other languages (like PHP) etc. There's a wide range of modules available for httpd that do things Tomcat can't do, or can't do easily.