Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Apache and Tomcat

 
Syed Hussain
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).]
 
Syed Hussain
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic