Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 53798 invoked from network); 29 Jul 2009 13:34:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 29 Jul 2009 13:34:12 -0000 Received: (qmail 76046 invoked by uid 500); 29 Jul 2009 13:34:09 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 75961 invoked by uid 500); 29 Jul 2009 13:34:09 -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 75950 invoked by uid 99); 29 Jul 2009 13:34:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Jul 2009 13:34:09 +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 ndiulgerov@imx.fr designates 213.30.158.214 as permitted sender) Received: from [213.30.158.214] (HELO smtp.codix-france.com) (213.30.158.214) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Jul 2009 13:33:58 +0000 Received: from mail2.imx.fr (unknown [192.9.202.6]) by smtp.codix-france.com (Postfix) with ESMTP id D86EB196396 for ; Wed, 29 Jul 2009 15:33:27 +0200 (CEST) Received: from [192.9.202.231] ([192.9.202.231]) by mail2.imx.fr with Microsoft SMTPSVC(6.0.3790.3959); Wed, 29 Jul 2009 16:33:28 +0300 Message-ID: <4A704FA8.5060104@imx.fr> Date: Wed, 29 Jul 2009 16:33:28 +0300 From: Nikolay Diulgerov User-Agent: Thunderbird 2.0.0.22 (Windows/20090605) MIME-Version: 1.0 To: Tomcat Users List Subject: Re: tomcat and apache document root References: <6057E1AF82D2AE4DA6DB028834D8FE7B0A696B37@monster.pepperone.intra> <327858f40907290346qb568ad3h523d978c5ae535f9@mail.gmail.com> <4A702F6E.2000500@imx.fr> <4A7031C3.3070107@apache.org> <4A703F8A.8030300@imx.fr> <4A704121.7000500@apache.org> <4A704D1E.2030805@imx.fr> In-Reply-To: <4A704D1E.2030805@imx.fr> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 29 Jul 2009 13:33:28.0360 (UTC) FILETIME=[2809B280:01CA1051] X-MailScanner-ID: D86EB196396.76F82 X-CODIX-BG-MailScanner: Found to be clean X-CODIX-BG-MailScanner-From: ndiulgerov@imx.fr X-CODIX-BG-MailScanner-To: users@tomcat.apache.org X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No About the double deployment ... you seems to be right but if I dont want to rename the app to ROOT can I move it to for example /myapp and then to have And second ... is there an option to change so not /tomcat/webapps/ROOT is the default but /tomcat/webapps/myapp is the default. Nikolay Diulgerov wrote: > Mark, > what do you mean by > separation of httpd and Tomcat > > Do you mean that httpd should redirect all requests to tomcat and not > serve static files? > Or that httpd should have alias /myapp > and still serve static files for it. > Or something different? > > > > Mark Thomas wrote: >> Nikolay Diulgerov wrote: >> >>> I wonder then if I can use in server.xml >>> >>> To change the default application serving when someone requests >>> myserver.com:8080 >>> >> >> No. That will result in double deployment. Just rename webapps/myapp to >> webapps/ROOT >> >> >>> And then in apache to use >>> >>> DocumentRoot "/tomcat/webapps/myapp" >>> >> Make this: >> DocumentRoot "/tomcat/webapps/ROOT" >> and also below. >> >> >>> >>> Options FollowSymlinks >>> DirectoryIndex index.html login.jsp >>> AllowOverride None >>> Allow from all >>> >>> >>> AllowOverride None >>> deny from all >>> >>> >>> AllowOverride None >>> deny from all >>> >>> >> Better. Depending on settings JSP source code disclosure may still be an >> issue. (ie requests for index.jSp may get served by httpd as static >> files). >> >> >>> JkMount /*.jsp client >>> JkMount /*.do client >>> >> >> >> I always recommend separation of httpd and Tomcat but if you are going >> to have them serving from the same directory structure then you are >> heading in the right direction. >> >> Mark >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org >> For additional commands, e-mail: users-help@tomcat.apache.org >> >> > -- Best regards, Nikolay Diulgerov Network Administrator E-mail: ndiulgerov@imx.fr Telephone : +33 4 89 87 77 77 Fax : +33 4 89 87 77 00 Web: http://www.codix-france.com --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org