Return-Path: X-Original-To: apmail-tomcat-dev-archive@www.apache.org Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CD24D6E54 for ; Fri, 29 Jul 2011 22:31:28 +0000 (UTC) Received: (qmail 46193 invoked by uid 500); 29 Jul 2011 22:31:27 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 45904 invoked by uid 500); 29 Jul 2011 22:31:26 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 45894 invoked by uid 99); 29 Jul 2011 22:31:26 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Jul 2011 22:31:26 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.131] (HELO eos.apache.org) (140.211.11.131) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Jul 2011 22:31:25 +0000 Received: from eos.apache.org (localhost [127.0.0.1]) by eos.apache.org (Postfix) with ESMTP id D682DA13 for ; Fri, 29 Jul 2011 22:31:04 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable From: Apache Wiki To: Apache Wiki Date: Fri, 29 Jul 2011 22:31:04 -0000 Message-ID: <20110729223104.66305.12726@eos.apache.org> Subject: =?utf-8?q?=5BTomcat_Wiki=5D_Update_of_=22CreateVirtualHosts=22_by_Konstan?= =?utf-8?q?tinKolinko?= Auto-Submitted: auto-generated Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for ch= ange notification. The "CreateVirtualHosts" page has been changed by KonstantinKolinko: http://wiki.apache.org/tomcat/CreateVirtualHosts?action=3Ddiff&rev1=3D6&rev= 2=3D7 Comment: Add ${catalina.base} references = If you want tomcat to accept requests for different hosts e.g., www.myhos= tname.com then you must = - 0. create ${catalina.home}/www/appBase , ${catalina.home}/www/deploy, + 0. create ${catalina.base}/www/appBase , ${catalina.base}/www/deploy, - and ${catalina.home}/conf/Catalina/www.myhostname.com + and ${catalina.base}/conf/Catalina/www.myhostname.com = 1. add a host entry in the server.xml file {{{ @@ -15, +15 @@ 2. Create the the following file under conf/Catalina/www.myhostname.com/= ROOT.xml {{{ - + }}} = Add any parameters specific to this hosts webapp to this context file = - 3. put your war file in ${catalina.home}/www/deploy + 3. put your war file in ${catalina.base}/www/deploy = - When tomcat starts, it finds the host entry, then looks for any context f= iles and will start any apps with a context + When tomcat starts, it finds the host entry, then looks for any context f= iles and will start any apps with a context. = - To add more sites just repeat and rinse, all webapps can share the same w= ar file location and appbase + To add more sites just repeat and rinse, all webapps can share the same w= ar file location and appbase. = ---- [[CategoryFAQ]] --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org