Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 95246 invoked from network); 2 Oct 2003 02:24:46 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 2 Oct 2003 02:24:46 -0000 Received: (qmail 58262 invoked by uid 500); 2 Oct 2003 02:24:04 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 58235 invoked by uid 500); 2 Oct 2003 02:24:03 -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 58221 invoked from network); 2 Oct 2003 02:24:03 -0000 Received: from unknown (HELO ohsmtp01.ogw.rr.com) (65.24.7.36) by daedalus.apache.org with SMTP; 2 Oct 2003 02:24:03 -0000 Received: from johnturner.com (cpe-024-210-109-123.twmi.rr.com [24.210.109.123]) by ohsmtp01.ogw.rr.com (8.12.10/8.12.2) with ESMTP id h922OBId009115 for ; Wed, 1 Oct 2003 22:24:12 -0400 (EDT) Message-ID: <3F7B8C4C.4040106@johnturner.com> Date: Wed, 01 Oct 2003 22:24:12 -0400 From: John Turner User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Tomcat Users List Subject: Re: tomcat and virtual hosts References: <00d501c38739$a9213fc0$6f01630a@SUNTAC> In-Reply-To: <00d501c38739$a9213fc0$6f01630a@SUNTAC> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N .... .... Better yet, make the Context docBase = "ROOT" so it is relative to the Host's appBase. Put JSP in /export/home/webroot/site1/ROOT. Put WEB-INF in the same location. Do the same for site 2. John Johan Louwers wrote: >I have set up tomcat and apache... bind them with a JK2 connector both on >port 80. I have 2 domains running on the machine. I made the virtual hosts >work in apache with editting httpd.conf The apache docs are located on the >following location: > >/export/home/webroot/site1 (www.site1.com) >/export/home/webroot/site2 (www.site2.com) > >I would like to access jsp files on both the website's like >www.site1.com/index.jsp and www.site2.com/index.jsp and store the jsp files >at the same location as the html docs. This means locate them in >/export/home/webroot/site1 and /export/home/webroot/site2 > >How do I make tomcat understeand that it must be running jsp files on this >locations. Anybody knows how to do this? You have to add some things to >server.xml i know that buth what and do have to edit httpd.conf in some way >to make this work? A working example of a server.xml/httpd.conf file is >welcome and also any tip hint and clue :-) > >Thanks already, >Johan. > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org >For additional commands, e-mail: tomcat-user-help@jakarta.apache.org > > > --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org