Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 48593 invoked from network); 2 Sep 2008 21:29:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Sep 2008 21:29:24 -0000 Received: (qmail 76664 invoked by uid 500); 2 Sep 2008 21:29:06 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 76639 invoked by uid 500); 2 Sep 2008 21:29:06 -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 76622 invoked by uid 99); 2 Sep 2008 21:29:06 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Sep 2008 14:29:06 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [196.25.240.83] (HELO ctb-mesg-2-3.saix.net) (196.25.240.83) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Sep 2008 21:28:12 +0000 Received: from animal (dsl-243-106-51.telkomadsl.co.za [41.243.106.51]) by ctb-mesg-2-3.saix.net (Postfix) with SMTP id 5BC8311C4 for ; Tue, 2 Sep 2008 23:28:36 +0200 (SAST) Message-ID: <008901c90d42$f7fe2380$0300000a@animal> From: "Johnny Kewl" To: "Tomcat Users List" References: <42512.10.16.10.215.1220349085.squirrel@mail.serc.iisc.ernet.in> Subject: Re: help with virtual hosting Date: Tue, 2 Sep 2008 23:29:22 +0200 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-Antivirus: avast! (VPS 080805-0, 2008/08/05), Outbound message X-Antivirus-Status: Clean X-Virus-Checked: Checked by ClamAV on apache.org ----- Original Message ----- From: "Sathish Vadhiyar" To: Sent: Tuesday, September 02, 2008 11:51 AM Subject: help with virtual hosting > > Hi, > > I have tried various solutions regarding virtual hosts in tomcat and none > of them work. > > I have in my server.xml: > > unpackWARs="true" autoDeploy="true" > xmlValidation="false" xmlNamespaceAware="false"> > > Under my webapps directory, I have vh1 directory > > I have vh1.com in my DNS. > So, when I type http://v1.com, it is opening the project corresponding to > webapps/vh1. > > Now, I have webapps/vh2-apps corresponding to 2nd virtual host. I also > have vh2.com in DNS corresponding to the same machine. > > What should I do in order to get http://vh2.com open the corresponding web > page? > > Thanks, > Sathish This is covered really well in your tomcat docs http://localhost:8080/tomcat-docs/virtual-hosting-howto.html or try this... http://www.onjava.com/pub/a/onjava/2003/06/25/tomcat_tips.html --------------------------------------------------------------------------- HARBOR : http://www.kewlstuff.co.za/index.htm The most powerful application server on earth. The only real POJO Application Server. See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm --------------------------------------------------------------------------- --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org