Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

2 Answers 2

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

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.