httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Krist van Besien" <krist.vanbes...@gmail.com>
Subject Re: [users@httpd] Diff b/w httpd and tomcat
Date Mon, 20 Mar 2006 09:21:49 GMT
On 3/18/06, Khawar Wahab <kwahab@gmail.com> wrote:
> Need some help. I want to run a web-server on my home network and
> experiment with different web technologies. I'm confused whether
> Apache httpd is the server or tomcat is? I have hosted a JSP based
> site using tomcat.
> If tomcat is a web-server, why httpd?
> if both are servers what's the diff? which is better? help!!!

Tomcat is a Java Application server, that can also serve as a web
server. The webserver functionality in Tomcat is not as full featured
as offered by apache.

There is nothing to stop you to host the static part of you website in
Tomca. However I would not do this in a production environment for
several reasons:
- Security is better. Running an apache on port 80 as un unpriviliged
user is a lot easier than doing the same with Tomcat.
- Apache performs way better when serving static content.

A usual setup is to have apache as the "front end" web server, runnign
on port 80 and hosting static content, forwarding URLs for dynamic
content to the Tomcat server. Have a look on the Tomcat site on how to
do this.

Krist

--
krist.vanbesien@gmail.com
Solothurn, Switzerland

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message