Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 38214 invoked from network); 22 Jun 2007 13:54:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 22 Jun 2007 13:54:53 -0000 Received: (qmail 84648 invoked by uid 500); 22 Jun 2007 13:54:43 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 84626 invoked by uid 500); 22 Jun 2007 13:54:43 -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 84615 invoked by uid 99); 22 Jun 2007 13:54:43 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Jun 2007 06:54:43 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [209.191.91.174] (HELO web37912.mail.mud.yahoo.com) (209.191.91.174) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 22 Jun 2007 06:54:36 -0700 Received: (qmail 24614 invoked by uid 60001); 22 Jun 2007 13:54:15 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=EFR9uUEHssbPcJh8hWFKIDDvpGOMiCRf3r/at7BkeSas6+GqmggGr9zJmmsXWYee2BwOLrla/UPaDkh4Ji6Xi+P2dKP2U5oy054Kr0quoDM2KdzvnEa9Aio/EmppcfDX3WvqqS7FfMr1JEXRQO99GRK0d4GdwtDPZnI81m2CFqw=; X-YMail-OSG: RPAhfRAVM1mxgnzQ60a75xfGvOJNbor2.C2tzadxd1kfslaeJ8YHZKzSRz_mO12Fw8uvWKbnDnvXMDJymZHi00RmOt3iuqqcybn4oguYpucBq0Xs8Pg- Received: from [134.88.228.254] by web37912.mail.mud.yahoo.com via HTTP; Fri, 22 Jun 2007 06:54:15 PDT Date: Fri, 22 Jun 2007 06:54:15 -0700 (PDT) From: Tent Pig Subject: Configuring TOMCAT to use different ROOT context To: users@tomcat.apache.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <483200.24285.qm@web37912.mail.mud.yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org Hi everyone. I'm sorry if this seems like a newbie question, unfortunately I'm a complete neophyte when it comes to tomcat setup and configuration. I have a user who manages website content, setup and administration of the linux server falls upon me. On this web server my user has several websites hosted via apache virtual hosts. She would like to start incorporating JSP pages into her sites. I installed an configured the mod_jk.so module on apache -- works great. I created a few 'test.jsp' pages and put them in $TOMCAT_HOME/webapps/ROOT and was able to access them by going to http://mysite/test.jsp. Thus, Tomcat seems to be working file, and apache is correctly handing off the requests to tomcat which is responding correctly. Although my user would like to integrate JSP pages into her websites, she wants to be able to maintain all her files within the DocumentRoot folders of her virtual hosts -- she doesn't want to have to update both the DocumentRoot folder of the apache virtual hosts and the "webapps" directory structure of Tomcat with her JSP pages. Plus, she has different JSP pages for each virtual host and doesn't want to 'mix and match' them. In other words, if 'myfile.jsp' is only available on virtualhost1, she doesn't want someone to be able to go to http://virtualhost2/myfile.jsp, as she has me restrict access to various virtual hosts by IP subnet. So, to start off I attempted to update Tomcat's 'server.xml' to change the default context to point to the same DocumentRoot folder, but this apparently doesn't work (or, more appropriately, I'm not doing it correctly). I had googled various phrases on how to do this, and I found a lot of useless information, or references to files/clauses in various config files that no longer exist. The information I found, when I attempted to use it, didn't work. For what its worth, I currently have CentOS 5 running, which has apache 2.2.3 and tomcat 5.5.23. I reviewed the Tomcat help pages, which provide nice syntaxical information, but seem to fall short in providing me lots of useful examples on how to accomplish what I'm trying to do. So... Can someone provide me with a brief example of how I configure Tomcat to look for JSP pages within each virtual hosts's DocumentRoot directory structure, and how to keep each virtual hosts's applications segregated? Thanks, Vin ____________________________________________________________________________________ Building a website is a piece of cake. Yahoo! Small Business gives you all the tools to get online. http://smallbusiness.yahoo.com/webhosting --------------------------------------------------------------------- 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