Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DF896EF2C for ; Thu, 17 Jan 2013 17:59:23 +0000 (UTC) Received: (qmail 46937 invoked by uid 500); 17 Jan 2013 17:59:19 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 46815 invoked by uid 500); 17 Jan 2013 17:59:19 -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 46806 invoked by uid 99); 17 Jan 2013 17:59:19 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Jan 2013 17:59:19 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [76.96.62.32] (HELO qmta03.westchester.pa.mail.comcast.net) (76.96.62.32) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Jan 2013 17:59:12 +0000 Received: from omta03.westchester.pa.mail.comcast.net ([76.96.62.27]) by qmta03.westchester.pa.mail.comcast.net with comcast id p3vA1k0080bG4ec535yqbu; Thu, 17 Jan 2013 17:58:51 +0000 Received: from Christophers-MacBook-Pro.local ([69.143.109.145]) by omta03.westchester.pa.mail.comcast.net with comcast id p5yp1k00w38FjT13P5yqwX; Thu, 17 Jan 2013 17:58:50 +0000 Message-ID: <50F83BD9.1060407@christopherschultz.net> Date: Thu, 17 Jan 2013 12:58:49 -0500 From: Christopher Schultz User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Subdomains in tomcat 7 References: <50F6FD21.9010403@apache.org> In-Reply-To: X-Enigmail-Version: 1.5 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20121106; t=1358445531; bh=5WfnL521eCgELRXc5uxUv9GB8C4uhgNhJvFHGG5qGN0=; h=Received:Received:Message-ID:Date:From:MIME-Version:To:Subject: Content-Type; b=MRI+ddYlkuQJ/phwuF5GbOFCMaMfhXaIVxTE17VCbpGZ0iWTV+Y1+sVPdSM96d1FH myvcsCGpYHru1dXJVwuEhJ3Aj9J57ZDqGeKajqPifThoStYu3oMa2ihskBBA09qhRY MazJgMW4XQIjnViXuJ/LaxjVF9QW9uhP7BHv3sqs+JEOPV0EQJsUE2AGP/uaIvdD1z lBWhNH1tIS2e56B0i+89blkd/QDaqJbt+oqa7we5wzt250I1+pw5avObl/8VIoK0/o hs9AunJT/ZBdwU/Bl1965JZMLmSnC4zjQLP81SGBs6okBSMSFBCBBPR+a5F9ulnTJn EfoOEOfgoa7hg== X-Virus-Checked: Checked by ClamAV on apache.org -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Leonardo, On 1/16/13 7:22 PM, Leonardo Torres wrote: > I have one domain = www.portal.com I have one subdomain = > www.painel.portal.com > > Both domains are configured (DNS) I wish that when the user to > enter www.portal.com, the appA was loaded. When the user enter > www.painel.portal.com, the appB was loaded. No problem. > server.xml: > > autoDeploy="true"> > directory="logs" prefix="localhost_access_log." suffix=".txt" > pattern="%h %l %u %t "%r" %s %b" /> Only one problem: You shouldn't be using server.xml to define s. Instead, put your WAR file into ptt/ROOT.war and let it auto-deploy. This will simplify your configuration. > autoDeploy="true"> Problem: you have two hosts with the same appBase. This will prevent you from having two separate ROOT webapps. > This will conflict with any ptt/ROOT.war file. See my comment above for how to do this properly (i.e. don't use in server.xml). > directory="logs" prefix="localhost_access_log." suffix=".txt" > pattern="%h %l %u %t "%r" %s %b" /> Hope that helps, - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEAREIAAYFAlD4O9kACgkQ9CaO5/Lv0PCxTACfSS6ijyGHr52p+Fr5V+IausMZ WFsAoIkiP2vP4aHRfs1q2HIB9Pz2riJz =K92Q -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org