Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 99335 invoked by uid 500); 29 May 2001 16:41:06 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk Reply-To: tomcat-user@jakarta.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 83918 invoked from network); 29 May 2001 15:55:47 -0000 Received: from sage.zzz.net (HELO zendigital.com) (64.152.63.158) by h31.sny.collab.net with SMTP; 29 May 2001 15:55:47 -0000 Received: (qmail 5854 invoked from network); 29 May 2001 11:55:48 -0400 Received: from unknown (HELO SLEEK) (192.168.1.114) by fire.zzz.net with SMTP; 29 May 2001 11:55:48 -0400 From: "Daniel Zen" To: Subject: Virtual Host Context Aliasing Date: Tue, 29 May 2001 11:55:38 -0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" 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.4522.1200 X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N I would think this would be a common question, but I couldn't find it documented, nor asked on this list. Very often domains are served from 2 urls (www.zzz.net & zzz.net) with the same functionality. When I configure my virtual hosts in Apache's httpd.conf this is easy: ServerName www.zzz.net ServerAlias zzz.net DocumentRoot /home/httpd/html/zzz Options None Deny from all JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 The following properly placed in server.xml creates 2 seperate contexts for the same set of servlets and JSPs. Functional, but a little wasteful. Now, I how do I do an alias Context in Tomcat's server.xml so that there is only one Host/Context with multiple names?????? Thank you in advance. Daniel Zen