Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 27892 invoked by uid 500); 31 May 2001 18:16:46 -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 25085 invoked from network); 31 May 2001 18:11:25 -0000 Received: from we-24-30-106-241.we.mediaone.net (HELO kilbride.com) (24.30.106.241) by h31.sny.collab.net with SMTP; 31 May 2001 18:11:25 -0000 Received: from p2266 (jeff [192.168.0.100]) by kilbride.com (8.9.3/8.9.3) with SMTP id LAA29099 for ; Thu, 31 May 2001 11:13:22 -0700 Message-ID: <009101c0e9fd$48edb6f0$6400a8c0@p2266> From: "Jeff Kilbride" To: References: Subject: Re: Virtual Host Context Aliasing Date: Thu, 31 May 2001 11:12:38 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N Hi Daniel, I have the same problem -- wanting to alias more than one host name to a single context. Unfortunately, there is no way to do this. I've heard that the 4.0 version of Tomcat may have some abilities for doing this, but it's not nearly as straightforward as Apache's ServerAlias directive. For now, I've turned off zzz.net (using your example) in my DNS and am only serving www.zzz.net. I do a lot of connection pooling and other shared resources, so I can't afford to have 2 versions of all my contexts running at the same time. This is a totally unsatisfactory solution, but it's my only choice for the moment. Thanks, --jeff ----- Original Message ----- From: "Daniel Zen" To: Sent: Tuesday, May 29, 2001 8:55 AM Subject: Virtual Host Context Aliasing > 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. > > > crossContext="true" debug="0" reloadable="true" trusted="false" /> > > > > crossContext="true" debug="0" reloadable="true" trusted="false" /> > > > 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 >