java - Why do some servers run both Tomcat and also Apache Web Server? -
tomcat used running java servlets, has webserver functionality built in, can run independently. however, see several articles on how integrate apache webserver tomcat? what's purpose of doing this? improve performance?
i using tomcat serving webservices.
tomcat fine servlet container, there lot of things apache httpd can better (easier and/or faster).
for example apache can handle security, ssl, provide load balancing, url rewriting etc.
you can split content: can have apache httpd serve static content images, static html, js etc. , leave dynamic content (like servlets, jsp etc.) tomcat. has advantage failure in tomcat not render whole web site unusable / unavailable (just servlets/jsp pages).
you can separate 2 , increase security: can run apache httpd on 1 server (which reachable on internet) , direct server running tomcat, invisible outside.
Comments
Post a Comment