-1

What interests me are the similarities and the differences between tomcat and apache. When would one be used and when the other? Thank you.

1 Answer 1

0

Tomcat is a Java servlet container. Apache2 is a web server.

You can't run Java servlets in Apache. You wouldn't run anything else than a Java servlet in Tomcat.

You use Tomcat (or other Java servlet container - jboss, glassfish, etc) when you want to run a Java web application. You use Apache2 (or other web servers) when you want to run something else (static web, php, perl, python, etc).

Google Fu:

Not the answer you're looking for? Browse other questions tagged .