Return-Path: Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 79713 invoked from network); 1 Dec 2000 04:01:29 -0000 Received: from runt.ebetinc.com (208.48.139.171) by locus.apache.org with SMTP; 1 Dec 2000 04:01:29 -0000 Received: from drees (drees.ebetinc.com [200.1.1.25]) by runt.ebetinc.com (8.9.3/8.9.3) with SMTP id UAA28422 for ; Thu, 30 Nov 2000 20:01:02 -0800 From: "David Rees" To: Subject: RE: Running JSP's w/ Apache and Tomcat Date: Thu, 30 Nov 2000 20:01:02 -0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 In-Reply-To: <200012010355.WAA02816@panix6.panix.com> X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N What you want to do is to override the root context. Put this in your server.xml file: Now, you'll also have to create a WEB-INF and it's corresponding subdirectories (lib, classes, ets) under /usr/local/apache/htdocs, as well as add a section to your Apache httpd.conf file to disallow access to that directory like this: AllowOverride None Order deny,allow deny from all Then you should be set to go! Coming from JServ/GnuJSP, this took a while to figure out myself. -Dave > | I would like to set up apache and tomcat so that apache handles > all of my > | static html pages and all of the JSP pages are handled by tomcat.... > | basically exactly how JServ/GNUJSP works. What do I need to add to > | tomcat.conf/server.xml in order to get this scenario to work correctly? > | I've been playing with different context settings and have checked all > | available docs and faqs without any success. With a default > set up (simply > | installing Tomcat, putting my jars in /lib and including tomcat.conf in > | httpd.conf) when I try to access a jsp file that's in my > | /usr/local/apache/htdocs dir, I get an error saying it can't be found in > | webapps/ROOT. Copying the file there seems to make it work, > but then I have > | to maintain the same file in two places because as soon as I > remove it from > | my apache document root, apache can no longer find the file and > I don't even > | get the Tomcat error. > | > | Anyone out there with a similar scenario? It seems like this should be > | fairly basic, but the included documentation on Apache/Tomcat configs is > | sketchy at best.