Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 36808 invoked from network); 22 Jul 2008 20:38:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 22 Jul 2008 20:38:44 -0000 Received: (qmail 19086 invoked by uid 500); 22 Jul 2008 20:38:32 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 18819 invoked by uid 500); 22 Jul 2008 20:38:31 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 18807 invoked by uid 99); 22 Jul 2008 20:38:31 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Jul 2008 13:38:31 -0700 X-ASF-Spam-Status: No, hits=1.5 required=10.0 tests=SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [212.85.38.174] (HELO popeye.combios.es) (212.85.38.174) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Jul 2008 20:37:37 +0000 Received: from [192.168.250.152] (p549EAE0B.dip0.t-ipconnect.de [84.158.174.11]) (authenticated bits=0) by popeye.combios.es (8.13.8/8.13.8/Debian-3) with ESMTP id m6MKXrrB011796 for ; Tue, 22 Jul 2008 22:33:54 +0200 Message-ID: <48864411.3040005@ice-sa.com> Date: Tue, 22 Jul 2008 22:33:21 +0200 From: =?ISO-8859-1?Q?Andr=E9_Warnier?= User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Multiple websites in tomcat References: <48821876.9090008@kippdata.de> <48823F9F.3070605@ice-sa.com> <4883414A.1040304@ice-sa.com> <4883BCDA.5090401@ice-sa.com> <4884D0C1.1060900@ice-sa.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on popeye.combios.es X-Virus-Scanned: ClamAV 0.92.1/7781/Tue Jul 22 19:35:50 2008 on popeye.combios.es X-Virus-Status: Clean X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No, score=-96.4 required=2.5 tests=RCVD_IN_PBL, RCVD_IN_SORBS_DUL,USER_IN_WHITELIST,WEIRD_PORT autolearn=no version=3.2.3 Sorry, there is a typo in my previous message : The JkMount lines should be : JkMount /servlets-examples ajp13w JkMount /servlets-examples/* ajp13w (I forgot an "s" in the second one) Ravi Sharma wrote: > Hi Andre, > Thanks for reply and sorry for my incomplete reply. > So here is what i have done now. > First i have reinstalled everything again,So i have fresh environment with > apache (version 2.2.3) and tomcat (version 5.5). > JK module(1.2.26 ) is already installed in apache, so i don't need to get it > from anywhere. > Allright ! That was a very good idea. Now we have a chance to start from a clean situation. [...] > > You can access following files from this url > http://www.jaatmusic.com/log.html > httpd.conf > server.xml > worker.properties > jk.conf which is being included in httpd.conf by using this line Include > conf.d/*.conf > from this url > I looked at this. That was also a good idea for now. So, STEP 1 : Stop Tomcat and Apache Go back to the original configuration files. Really. Forget your changes for now. Put back - the original Tomcat server.xml - the original Apache httpd.conf - the original workers.properties STEP 2 : At the end of the original http.conf, add these lines : JkLogFile /etc/httpd/logs/jk.log JkLogLevel debug JkMount /servlets-examples ajp13w JkMount /servlet-examples/* ajp13w (note the change of the URLs and the change of the worker name, to match the existing worker name in workers.properties) STEP 3 : Restart Tomcat and Apache, and wait 30 sec. STEP 4 : Try : a) http://www.jaatmusic.com:9080/servlets-examples b) http://www.jaatmusic.com:80/servlets-examples Both URLs should give you the same result. With (a), you access Tomcat directly, through its HTTP connector at port 9080. With (b), you access Tomcat through Apache (at port 80), the Apache mod_jk module, and the Tomcat AJP13 Connector. Let me know... And then, we can start making changes again to get the ports you really want etc.. Andr� --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org