Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 13252 invoked from network); 11 Dec 2010 15:07:25 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 11 Dec 2010 15:07:25 -0000 Received: (qmail 29229 invoked by uid 500); 11 Dec 2010 15:07:22 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 29032 invoked by uid 500); 11 Dec 2010 15:07:21 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 29023 invoked by uid 99); 11 Dec 2010 15:07:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 11 Dec 2010 15:07:21 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of aw@ice-sa.com designates 212.85.38.228 as permitted sender) Received: from [212.85.38.228] (HELO tor.combios.es) (212.85.38.228) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 11 Dec 2010 15:07:13 +0000 Received: from [192.168.245.129] (p549E18E3.dip0.t-ipconnect.de [84.158.24.227]) by tor.combios.es (Postfix) with ESMTPA id 9197622623C for ; Sat, 11 Dec 2010 16:01:48 +0100 (CET) Message-ID: <4D039372.6070404@ice-sa.com> Date: Sat, 11 Dec 2010 16:06:26 +0100 From: =?ISO-8859-1?Q?Andr=E9_Warnier?= Reply-To: Tomcat Users List User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Virtual host, alias and context parameters References: <4D038BD1.8030405@ice-sa.com> In-Reply-To: <4D038BD1.8030405@ice-sa.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Let me add something to my previous answer, to kind of wrap up also what the others responded. (a) With the Alias solution, there will be a single copy of your web application. To react differently depending on the hostname that the users call up, that web application can get the hostname of the request that was sent, and do conditional things depending on it. (b) With the virtual Host solution, there will be multiple copies of your web application, one for each different domain name. The second solution may seem like a duplication. However, you have to think a bit in advance. Currently, maybe the difference between the application for users of host A and the application for the users of host B are really small, and you do not think that you need 2 separate web apps. But it most cases, you will find out that these differences increase with time, and that you will find yourself adding always more conditional code to your application, and making it more and more complicated and less and less maintainable. In that case, it is probably better to start with solution (b) in the first place. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org