Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 19263 invoked from network); 29 Jul 2003 17:40:57 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 29 Jul 2003 17:40:57 -0000 Received: (qmail 11046 invoked by uid 97); 29 Jul 2003 17:43:36 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@nagoya.betaversion.org Received: (qmail 11039 invoked from network); 29 Jul 2003 17:43:35 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 29 Jul 2003 17:43:35 -0000 Received: (qmail 17272 invoked by uid 500); 29 Jul 2003 17:40:34 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 17211 invoked from network); 29 Jul 2003 17:40:34 -0000 Received: from law15-f4.law15.hotmail.com (HELO hotmail.com) (64.4.23.4) by daedalus.apache.org with SMTP; 29 Jul 2003 17:40:34 -0000 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Tue, 29 Jul 2003 10:40:38 -0700 Received: from 168.179.102.43 by lw15fd.law15.hotmail.msn.com with HTTP; Tue, 29 Jul 2003 17:40:37 GMT X-Originating-IP: [168.179.102.43] X-Originating-Email: [hari_om@hotmail.com] From: "Hari Om" To: tomcat-user@jakarta.apache.org Bcc: Subject: Re: Port 80, 8009 and 8080 Date: Tue, 29 Jul 2003 17:40:37 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 29 Jul 2003 17:40:38.0169 (UTC) FILETIME=[85CEF890:01C355F8] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Thank You John - Hats Off to you..... that was a very good explaination........Million Thanks >From: John Turner >Reply-To: "Tomcat Users List" >To: Tomcat Users List >Subject: Re: Port 80, 8009 and 8080 >Date: Tue, 29 Jul 2003 12:51:58 -0400 > > >We talked about this yesterday. > >First, understand that port 8080 is OPTIONAL. It is not required. > >If you integrate Tomcat with Apache, all that is required is a single >connection on a single port. > >That port can be ANY port you wish, it is up to you. By convention, the >default for Apache connectors is 8009. > >Tomcat has the ability to act as a web server WITHOUT Apache. A default >installation is configured to do two things: be a webserver WITHOUT Apache, >and integrate with Apache. Tomcat can do both at the same time. > >By convention, web servers take requests on port 80. However, many people >already have web servers running on machines where they install Tomcat. >Thus, to avoid conflicts and make it easier to get started with Tomcat, the >default HTTP port in a Tomcat installation is 8080, to avoid conflict with >any existing web servers on port 80. > >In production, if you run Apache + Tomcat, you DISABLE the HTTP connector >on port 8080. > >In production, if you do not run Apache and run Tomcat alone as your only >webserver, you DISABLE the AJP connector on port 8009 and change the HTTP >connector on port 8080 to port 80, so that web users do not have to type a >port number on the URL. > >In an Apache + Tomcat environment, the request comes in on port 80, Apache >determines whether the request should be sent to Tomcat. If so, then the >Apache connector module determines which port it can use to contact Tomcat >(by default this is 8009). Tomcat is contacted on that port (Tomcat is >already listening and waiting for connections on that port). Tomcat >handles the request, and sends the result back to the Apache connector on >the same port. Port 8080 is not involved in any way, shape or form. > >This is why you can use two different URLs to diagnose problems: > >Problem with http://localhost/examples = problem with connector >Problem with http://localhost:8080/examples = problem with Tomcat > >Both URLs can work, they are not mutually exclusive. > >John > > >Hari Om wrote: > >>can any GURU's here give me a good step-by-step understanding as to how >>the request flows from Apache (port 80) to MOD_JK and AJP (Port 8009) and >>then to Tomcat (Port 8080). I am confused lately .... _________________________________________________________________ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org