Does Tomcat require Apache httpd? Does Tomcat require Apache httpd? apache apache

Does Tomcat require Apache httpd?


Tomcat is a web server of its own, so a separate web server like Apache is not required. You probably will want to change Tomcat's port though, since it defaults to 8080 and web sites are usually on port 80.

I think people generally put Apache in front of Tomcat so they can do things like:

  • Have one website have several Tomcat instances behind it.
  • Serve static files from Apache to take load off of Tomcat.
  • Use other Apache features you may need (modules).
  • As @TacticalCoder mentions in the comments, you need to be root to listen on port 80, so some people may be using Apache as an easy way to proxy port 80 to port 8080.

I'd recommend the YAGNI approach and just go with Tomcat until/unless you find a reason you want Apache in front of it.


Just Tomcat. HTTPD is never a requirement for Tomcat.


Tomcat is a servlet container which has it's own http server ,so if you want to run a war ,you only need a tomcat ,but if you want to run a website which only include static files(html ,js ,css),you should choose apache better,even if the tomcat can do this