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 97A9F115DF for ; Sat, 5 Jul 2014 18:14:05 +0000 (UTC) Received: (qmail 12995 invoked by uid 500); 5 Jul 2014 18:14:02 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 12927 invoked by uid 500); 5 Jul 2014 18:14:02 -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 12916 invoked by uid 99); 5 Jul 2014 18:14:02 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 05 Jul 2014 18:14:02 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [209.85.220.53] (HELO mail-pa0-f53.google.com) (209.85.220.53) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 05 Jul 2014 18:13:59 +0000 Received: by mail-pa0-f53.google.com with SMTP id ey11so3322253pad.12 for ; Sat, 05 Jul 2014 11:13:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=Rpw5cJXR+miXxCIduAKSl6a9ef4s2PlgMKrlQ13QOxU=; b=UtOy0AYPjv2XGQIdrsuRIIiMZRhnS8AjhMAWpDJ5/qvMJ2+8HiK81twAAc87Zp46H9 mkM0ENQT3sja+bxfgKkFnfetlN1tGfmaloSl9TLLTPqscWOH9wo1d2pYQXeshmmx9mdh j4HFQo/Dx+0qg5d3fbIhWNhC6tvqXSxvN32J4FZeJE4HC3pTzaudzzbiifCxZZ50Q53S mMRn175TkxwvfvyDSQA6B+BdASfVkQdaHDQxQ9RNPkKr30xmsvIFPFsdj3ECMRi1ez9R x3pwimElWLjMawrXyByG4AgqXjgF4lEVnBFGMRA5B+L9andiYOczVffxxBwE2w06FTAV w5Zw== X-Gm-Message-State: ALoCoQlyHERO29t76h/iE+ypToqFwnK9JbkfwRfEvW2qjnPbhkOdB+VynGQudqnYoFsvRHPtPQ1o X-Received: by 10.66.180.141 with SMTP id do13mr17747762pac.93.1404584013256; Sat, 05 Jul 2014 11:13:33 -0700 (PDT) Received: from [192.168.1.11] (cpe-104-34-66-133.socal.res.rr.com. [104.34.66.133]) by mx.google.com with ESMTPSA id o4sm13635720pdd.22.2014.07.05.11.13.32 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 05 Jul 2014 11:13:32 -0700 (PDT) Message-ID: <53B84042.8050309@getrailo.org> Date: Sat, 05 Jul 2014 11:13:22 -0700 From: "Igal @ getRailo.org" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Host appBase vs Context docBase References: <53B75D39.3080600@getrailo.org> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org > Normally,we configure docBase when we want the application to be resided on a separate directory and not inside tomcat that's exactly what I'm trying to do > when you use docBase I don't think you need to configure host/appbase as well if I don't use host/appBase then "webapps" is set as default, and then if a document that exists in "webapps" is requested, e.g. /index.jsp and it does not exist in my application directory, then it is served from webapps, which is something that I really don't want to happen. sure, I can clear the contents of the webapps folder instead of creating the empty folder, but not sure I want to do that either. On 7/5/2014 3:49 AM, Neeraj Sinha wrote: > Normally,we configure docBase when we want the application to be resided on > a separate directory and not inside tomcat. So, when you use docBase I > don't think you need to configure host/appbase as well. > Appbase folders go under tomcat directory parallel to default appbase > webapps. Each appbase is mapped to a particular host so we configure more > than one appbases when we want to have applications running under different > hosts deployed in the same tomcat. > > On Jul 5, 2014 7:35 AM, "Igal @ getRailo.org" wrote: >> I'm a little confused about the Host appBase attribute. >> >> Let's say that my website resides in D:\www\site1 >> >> I don't like using {Tomcat}/webapps so I don't want to have it as a base > directory for websites. What I've been doing so far is create an empty > folder alongside "webapps", named "empty", and use it as appBase, e.g. >> >> >> >> >> >> But it feels like I'm doing something wrong. I expect this to work, but > it doesn't: >> autoDeploy="false"> >> >> >> >> Can anyone explain why the snippet above doesn't work, and if that is the > way it should be, then what is the purpose of Host/appBase? >> TIA >> >> -- >> Igal Sapir >> Railo Core Developer >> http://getRailo.org/ >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org >> For additional commands, e-mail: users-help@tomcat.apache.org >> -- Igal Sapir Railo Core Developer http://getRailo.org/ --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org