Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 67385 invoked from network); 5 Oct 2009 21:55:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 5 Oct 2009 21:55:23 -0000 Received: (qmail 29624 invoked by uid 500); 5 Oct 2009 21:55:19 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 29546 invoked by uid 500); 5 Oct 2009 21:55: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 29535 invoked by uid 99); 5 Oct 2009 21:55:19 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Oct 2009 21:55:19 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.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; Mon, 05 Oct 2009 21:55:08 +0000 Received: from localhost (localhost [127.0.0.1]) by tor.combios.es (Postfix) with ESMTP id 95193226086 for ; Mon, 5 Oct 2009 23:54:47 +0200 (CEST) Received: from tor.combios.es ([127.0.0.1]) by localhost (tor.combios.es [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8KDBZCG-YZzJ for ; Mon, 5 Oct 2009 23:54:47 +0200 (CEST) Received: from [192.168.245.129] (p549EB266.dip0.t-ipconnect.de [84.158.178.102]) by tor.combios.es (Postfix) with ESMTPA id 25034226076 for ; Mon, 5 Oct 2009 23:54:47 +0200 (CEST) Message-ID: <4ACA6B15.5010903@ice-sa.com> Date: Mon, 05 Oct 2009 23:54:29 +0200 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: Alias URL References: <5A0B7344204410499C304B46D9D7CC4701A581AD@IMSDEXPRI04.service.agency.mms.pri> <99C8B2929B39C24493377AC7A121E21F840554C9CF@USEA-EXCH8.na.uis.unisys.com> <5A0B7344204410499C304B46D9D7CC4701A5823E@IMSDEXPRI04.service.agency.mms.pri> <99C8B2929B39C24493377AC7A121E21F840554CC5E@USEA-EXCH8.na.uis.unisys.com> <5A0B7344204410499C304B46D9D7CC4701A58293@IMSDEXPRI04.service.agency.mms.pri> <99C8B2929B39C24493377AC7A121E21F840554CD33@USEA-EXCH8.na.uis.unisys.com> <4ACA4108.9020606@ice-sa.com> <5A0B7344204410499C304B46D9D7CC4701A583AE@IMSDEXPRI04.service.agency.mms.pri> In-Reply-To: <5A0B7344204410499C304B46D9D7CC4701A583AE@IMSDEXPRI04.service.agency.mms.pri> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Johnson, Rob E wrote: > Hi, > >> What you would like is that : >> - when a user enters the URL "http://imsden.mms" (or "http://imsden.mms:8080"), he continues to get the standard Tomcat homepage >> - when a user enters the URL "http://webtop" (or "http://webtop:8080"), he gets immediately the first page of the "webtop" application > >> Is that correct ? > > This is correct > > Sorry to be slow to respond I have to jump into a few meetings today. > And sorry if I leave in the middle somewhere, despite my didactic instincts. I have to take a plane at 5:00. So let's see if I can write this quickly and not forget anything. (If so, peruse the responses you already got, from me and others, because the data is already there). Anyway then, (stop Tomcat first) Step 1 : you will need 2 sections in Tomcat's configuration file "server.xml". Currently, there is only one. The first and only one you already have, is for the hostname "localhost", which is also the "default Host". Meaning in short that Tomcat will use the settings in that first Host section, for any request - either specifically addressed to "localhost" (of which there should be few, since they would have to originate on the same system) - or for any request that comes in with a "Host: xxxxxx" header, which "xxxxx" Tomcat cannot readily associate with a tag So look for the server.xml file, edit it, duplicate the entire .... section that you find there, and change the "name=" attribute value to be "webtop" instead of "localhost". That's basically all it takes to create a new "virtual host" (or "site" in MS parlance) into Tomcat. Also : - you currently have a ../webapps/ directory under Tomcat. At the same level, create a directory .../webapps2/ . Then move your complete "webtop/*" webapp under that new directory (instead of under /webapps/). - then, in the new tag that you created previously, change the appBase attribute as follows : old : appBase="webapps" new : appBase="webapps2" Then restart Tomcat. Now the Host named "localhost" should no longer find an application called "webtop". In other words, a browser accessing via "http://imsden.mms/webtop" should get an error. (Because the hostname "imsden.mms" not being found in a Host tag, Tomcat will default to the first Host, and its /webapps dir does not have the webtop application in it any longer). But the host named "webtop" should find this application. In other words, a browser accessing via "http://webtop/webtop" should now get the application. That's getting closer, but.. Step 2 : consists of making this "webtop" application into the default application of the host "webtop". For this, there is a wiki, but in your case it's easier : Stop Tomcat. Rename /webapps2/webtop/ to /webapps2/ROOT/, and restart Tomcat. Then try accessing http://webtop/ Tada ! Or not, but then you need to find another helping hand, cause I'm going to catch some sleep. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org