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 65899 invoked from network); 13 Jun 2000 07:30:56 -0000 Received: from biff.ibm.net.il (192.115.72.164) by locus.apache.org with SMTP; 13 Jun 2000 07:30:56 -0000 Received: from il.ibm.com (gvul.haifa.il.ibm.com [192.115.216.67]) by biff.ibm.net.il (Postfix) with ESMTP id AF6141016 for ; Tue, 13 Jun 2000 10:30:46 +0300 (IDT) Message-ID: <3945F0EF.C2582B58@il.ibm.com> Date: Tue, 13 Jun 2000 10:29:35 +0200 From: Gal Shachor Reply-To: shachor@il.ibm.com Organization: IBM X-Mailer: Mozilla 4.7 [en] (WinNT; I) X-Accept-Language: en-US,en MIME-Version: 1.0 To: tomcat-user@jakarta.apache.org Subject: Re: Virtual Hosting and Static Files: How? References: <8D0758759151D3119E0D009027860795B20916@venturexc01.cmgi.com> <00f201bfd4a6$f1141cb0$2aa3ccd1@stevep> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N Steven Punte wrote: > > Kevin: > > Thanks for the reply. > > If I understand you strategy, it requires me to effect > changes in each application, correct? That is, > instead of http://host/file.html, I will require the > application to specify http://host/app1/file.html. > > Is this correct? > Yes, but wait you can use mod_rewrite! > > At the moment, my situation is that I need to > host several application on the same machine > as if they were being server in a stand > alone manner (i.e. no changes in URLS). > Steve, a solution can be found where you: 1. Define webapps with the JSP files in them (say under /app1). 2. Use mod_rewrite to rewrite all requests for *.jsp into /app1/*.jsp This way you will not have to change your html/jsp files... I know that this is not the best/easiest configuration but it should work (sorry I did not provide an example in the ug). Hopefully Tomcat3.2 will have an easier vhost and apache integration support through mod_jk. Using mod_jk you can define: ServerName cabo.hamsoft.com JkMount /*.jsp tomact ServerAdmin stevep@technologent.com DocumentRoot /var/webrooms/resortbase ServerName webhost0.hamsoft.com And then all jsp suffixed files will go to your tomcat worker. Gal Shachor