This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Servlets and the fly likes Apache and Tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Apache and Tomcat" Watch "Apache and Tomcat" New topic
Author

Apache and Tomcat

Syed Hussain
Ranch Hand

Joined: Feb 06, 2001
Posts: 55
Please can anybody tell me the difference b/w Apache and Tomcat.
Can I use Tomcat as my Web Server?If yes, then why do we need Apache anyway?
How do we configure Apache to use with Tomcat?
Waiting in anticipation.
Syed
Jayson Falkner
Author
Ranch Hand

Joined: May 07, 2001
Posts: 57
Yes, Tomcat works as a stand-alone web server.
The difference is that Apache is a full fledge web server. Tomcat simply provides support for JSP, Servlets and serving up static content. If you are only developing JSP/Servlets there is no reason you shouldn't just stick with Tomcat. On the other hand if you want support for other stuff like PHP or Python, Tomcat shows you no love. By configuring Apache as you main server you can simply add in the modules for anything it supports.
Some also argue about Apache serving up static content faster. The validity of this statement is questionable, but you should test yourself if it is of interest.
If you would like help configuring Apache/Tomcat check out the Jakarta Tomcat-User listserv. The question is asked all the time and you can find lots of help.
Jayson Falkner
V.P./CTO, Amberjack Software LLC
Jayson@jspinsider.com
www.jspinsider.com
[This message has been edited by Jayson Falkner (edited May 08, 2001).]


Jayson Falkner<br />jayson@jspinsider.com<br />Author of <a href="http://www.jspbook.com" target="_blank" rel="nofollow">Servlets and JavaServer Pages; the J2EE Web Tier</a>
Syed Hussain
Ranch Hand

Joined: Feb 06, 2001
Posts: 55
Thanks Jayson,
Could you please tell me how to configure Tomcat to use virtual paths
e.g. what will i have to do to use something like http://www.jspinsider.com
instead of http://localhost:8080/FolderName/something.jsp
Syed.
Jayson Falkner
Author
Ranch Hand

Joined: May 07, 2001
Posts: 57
To use a domain name you must purchase it. Try Network Solutions.
After that you point it where you like.
Jayson Falkner
V.P./CTO, Amberjack Software LLC
Jayson@jspinsider.com
www.jspinsider.com
 
 
subject: Apache and Tomcat