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 76B6517792 for ; Thu, 21 May 2015 15:56:49 +0000 (UTC) Received: (qmail 60575 invoked by uid 500); 21 May 2015 15:56:43 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 60509 invoked by uid 500); 21 May 2015 15:56:43 -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 60498 invoked by uid 99); 21 May 2015 15:56:43 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 May 2015 15:56:43 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id A90B6C11B9 for ; Thu, 21 May 2015 15:56:42 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.12 X-Spam-Level: X-Spam-Status: No, score=-0.12 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id LK8ph7YPCZhX for ; Thu, 21 May 2015 15:56:35 +0000 (UTC) Received: from mail-la0-f44.google.com (mail-la0-f44.google.com [209.85.215.44]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id 8F9BD2540A for ; Thu, 21 May 2015 15:56:34 +0000 (UTC) Received: by lagv1 with SMTP id v1so106578856lag.3 for ; Thu, 21 May 2015 08:56:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=c5o5b0tct2dgHgYOaKJMyok/Tw4IgBRAp+8Avq67Xlk=; b=v0S0U4IxBuzY6c2LKAwxN013Ij1YAboCbb0b88bxWpDKPGebcZ5RORO18qv76N6+G1 vQnlV1jI3FMvGe2+w86/Cat4yzJXl/0xDteV8au+3nH530rLHJTAvME8YNOaxLNvEd3N 9Tp7cv2OzF/6qJHNm0IoGfwRTRWPYtS0WpxpqeqMLKm1UfeLg5i1dTFaD17gx/ji17Ze pUxyv+hzAd3MFwYGBSkZ4iRWqZ7h3b0upbNEwvpdBM6okJgPTKZUI3MW4KWzP6dgGqrY NKgF/n3rlFnIfYJoXN5p89dR5UujGPGsO++OZm5h8y5wpfsIG1AXqtw2YBJtZ2eo7baP 8M/A== X-Received: by 10.112.25.69 with SMTP id a5mr2859750lbg.16.1432223788640; Thu, 21 May 2015 08:56:28 -0700 (PDT) Received: from [192.168.0.184] ([212.233.113.186]) by mx.google.com with ESMTPSA id ap8sm5365307lac.30.2015.05.21.08.56.27 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 May 2015 08:56:28 -0700 (PDT) Message-ID: <555E0025.2090808@gmail.com> Date: Thu, 21 May 2015 18:56:21 +0300 From: =?UTF-8?B?0JXQstCz0LXQvdC40Lkg0JrRg9C30L3QtdGG0L7Qsg==?= User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: users@tomcat.apache.org Subject: Try to deploy war and keep access to my webapp in browser without entering context root name Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Hello, I asked question in stakoverflow http://stackoverflow.com/questions/30304478/tomcat-deploying-a-webapp-which-is-accessed-via-browser-without-context-root-na I ll repeat it here: I have a webapp (spring mvc 4 application) which code is placed in |tomcat-7/webapp/mywebapp/| folder. Webapp is accessed in browser with url |http://my-web-app.loc:8080| (i.e. without context root name |mywebapp| after port number). I have following setups in |tomcat-7/conf/server.xml|: | | I delploy webapp by placing war-file into |/webapp| folder. But after war-file is unpacked and webapp is successfully deployed, I can access to webapp only with |http://my-web-app.loc:8080/mywebapp| url. Url |http://my-web-app.loc:8080| directs me to 404 tomcat error page. What I have to setup to access to webapp with |http://my-web-app.loc:8080| url? --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org