On 3/18/06, Khawar Wahab <[EMAIL PROTECTED]> 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

--
[EMAIL PROTECTED]
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: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to