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 C2BB99B63 for ; Tue, 25 Sep 2012 03:36:01 +0000 (UTC) Received: (qmail 32180 invoked by uid 500); 25 Sep 2012 03:35:58 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 32030 invoked by uid 500); 25 Sep 2012 03:35:57 -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 32009 invoked by uid 99); 25 Sep 2012 03:35:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Sep 2012 03:35:57 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of chaudharipradeep9@gmail.com designates 209.85.219.45 as permitted sender) Received: from [209.85.219.45] (HELO mail-oa0-f45.google.com) (209.85.219.45) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Sep 2012 03:35:52 +0000 Received: by oagi18 with SMTP id i18so1931126oag.18 for ; Mon, 24 Sep 2012 20:35:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=1zKqfebbLb+3ZuBzKNm8Q3/Fo8T4YIbaoRJaXfLY/+g=; b=C283ryMQc6lydyytXRu9n3MNl3xiUGz+S1VC+aKAFLvezTlrLkv0dYDX3j5RP+O0NC EBRsgIQQFdfSfsA46epgZZeMnahTsBXVF1ne8w1uWJXJnJrxzUYepb6RETnwa0uC4i34 /kpdftVDQ6iW5xsfqkWJwkCQq2IaYX3aFgzwZQggxdnMsVmXnoMLFoD8iUULqTr/7fw3 1HbeX5FxhEsUtp+x4ozHU4a9TKEo0LbP9bxM/1/IelWtRYbzvpK105YLNWbn6PNdEFkT HSLKAranTpLG+t8+75a9lLALQ2Afdsh6P50r4h0lg4X8MJunJfpzFeijlCuNNvcCK4Px uXeg== Received: by 10.60.8.36 with SMTP id o4mr5148521oea.70.1348544131595; Mon, 24 Sep 2012 20:35:31 -0700 (PDT) MIME-Version: 1.0 Received: by 10.182.61.69 with HTTP; Mon, 24 Sep 2012 20:35:11 -0700 (PDT) In-Reply-To: References: From: Pradeep Date: Tue, 25 Sep 2012 09:05:11 +0530 Message-ID: Subject: Re: Problem with hosting mulitple websites on single tomcat 7 To: Tomcat Users List Content-Type: multipart/alternative; boundary=e89a8fb20566ed7ccc04ca7e6560 X-Virus-Checked: Checked by ClamAV on apache.org --e89a8fb20566ed7ccc04ca7e6560 Content-Type: text/plain; charset=ISO-8859-1 Hi Konstantin , Here are the details , 1. Tomcat Version - Server version: Apache Tomcat/7.0.21 2. It is Standalone 3. I am just using default setting , it is running on 8080 , Only thing ,i have added following entries to forward all 80 requests to 8080 Entries are, iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-ports 8080 iptables -t nat -A OUTPUT -p tcp --dport 80 -j REDIRECT --to-ports 8080 4. Yes I restarted tomcat for every change i was testing 5. How did i tested, I just visited *a.com* and *b.com* and checked whether they go to their respective website, instead they directed to o.com ( default app which in webapps) Here is the directory structure for above three domains o.com webapps a.com webapps_a b.com webapps_b They all are at same level Sorry, for top posting ,i new to mailing list, i will try to avoid in future :) , appreciate your help. Regards, Pradeep On Mon, Sep 24, 2012 at 7:37 PM, Konstantin Kolinko wrote: > 2012/9/24 Pradeep : > > I have one domain hosted on cloud server. Let's say o.com > > > > Now i want to add a.com and b.com to same cloud server, for that , i > added > > host entries inside server.xml as below, > > > > > > > > > > > unpackWARs="true" autoDeploy="true"> > > > > > > > > > > There is no need to cite comments, such as one above. > > > > > > directory="logs" > > prefix="localhost_access_log." suffix=".txt" > > pattern="%h %l %u %t "%r" %s %b" /> > > > > > > > > > > > > (Note, Localhost was the orignal entry) > > > > But , problem is , they both are pointing to o.com and not to their > > respective domains/webapp directories > > > > 1. What x.y.z version of Tomcat it is? > 2. Is your Apache Tomcat running standalone, or behind Apache HTTPD or > similar? > 3. How are your s configured? > 4. Did you restart Tomcat after making your changes? > 5. You say it does not work. - How did you test it? > > Best regards, > Konstantin Kolinko > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org > > -- Thanks & Regards, Pradeep Chaudhari --e89a8fb20566ed7ccc04ca7e6560--