Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm running Ubuntu 12.04. I have both Tomcat and Apache running. So when I point to localhost, I can see the page loading with welcome page.

Does localhost refer to Tomcat or Apache?

share|improve this question
refer to this for some great information on a 'Tomcat vs. Apache' style question over at stackoverflow – lwm Aug 6 '12 at 6:47
up vote 1 down vote accepted

Apache is a http server while Tomcat is a jsp/servlet container. when you type localhost:80 then it is Apache server and if you type localhost:8080 then it is Tomcat server.

The default port for Apache is 80 and for Tomcat is 8080, if you have not changed anything.

share|improve this answer

It is Apache. Tomcat is at

share|improve this answer
So what is the diff between localhost and localhost:8080? – user150563 Aug 6 '12 at 6:37
Simply if you type localhost it means localhost:80, both have different port address. – Deb Aug 6 '12 at 6:38

You must log in to answer this question.

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