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 13878 invoked from network); 12 May 2000 21:20:23 -0000 Received: from dhcp205.aamc.org (HELO legolas.bonampak.org) (143.220.150.205) by locus.apache.org with SMTP; 12 May 2000 21:20:23 -0000 Received: from aamc.org (IDENT:steve@localhost [127.0.0.1]) by legolas.bonampak.org (8.9.3/8.9.3) with ESMTP id RAA02422 for ; Fri, 12 May 2000 17:22:10 -0400 Sender: sweiss@aamc.org Message-ID: <391C7601.543BF3FB@aamc.org> Date: Fri, 12 May 2000 17:22:10 -0400 From: Steve Weiss Organization: Association of American Medical Colleges X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.14-6.1.1 i686) X-Accept-Language: en MIME-Version: 1.0 To: tomcat-user@jakarta.apache.org Subject: Re: tomcat + apache : new References: <391C3689.2B87A49F@ptc.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N Alexander Kogan wrote: > > But it doesn't work with apache server, because tomcat > produced following lines in tomcat-apache.conf > > Alias /CdCollection > /usr/local/jakarta-tomcat/webapps/CdCollection > > Options Indexes FollowSymLinks > > ApJServMount /CdCollection/servlet /CdCollection > > AllowOverride None > deny from all > > > It puts my context into default "webapps" place. > > Does anybody know how to work it out? There are two ways you can get this to work: 1) Edit tomcat-apache.conf yourself after it is created by Tomcat. Then rename the file and include that in Apache's httpd.conf, instead of tomcat-apache.conf. or 2) In server.xml, look for the following: Just after that there is: After that line, add something like the following: You need to make sure that you have subdirectories called "webapps" and "conf" in that directory. Then, when you start Tomcat, it will create tomcat-apache.conf in your "conf" directory (not the one where Tomcat is installed), and this one will have the correct path info. Then you can include that in httpd.conf. Tomcat will also create a "work" subdirectory where it puts compiled JSPs. -Steve -- Steve Weiss Association of American Medical Colleges (202)828-0428 mailto:sweiss@aamc.org http://www.aamc.org