Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 15468 invoked from network); 22 Apr 2010 10:21:02 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 22 Apr 2010 10:21:02 -0000 Received: (qmail 58430 invoked by uid 500); 22 Apr 2010 10:20:59 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 58251 invoked by uid 500); 22 Apr 2010 10:20:59 -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 58242 invoked by uid 99); 22 Apr 2010 10:20:58 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Apr 2010 10:20:58 +0000 X-ASF-Spam-Status: No, hits=-0.1 required=10.0 tests=AWL,SPF_SOFTFAIL,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: softfail (athena.apache.org: transitioning domain of pid@pidster.com does not designate 74.125.82.45 as permitted sender) Received: from [74.125.82.45] (HELO mail-ww0-f45.google.com) (74.125.82.45) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Apr 2010 10:20:52 +0000 Received: by wwd20 with SMTP id 20so629672wwd.18 for ; Thu, 22 Apr 2010 03:20:29 -0700 (PDT) Received: by 10.216.90.20 with SMTP id d20mr6409511wef.75.1271931628861; Thu, 22 Apr 2010 03:20:28 -0700 (PDT) Received: from Phoenix.local (94-193-98-41.zone7.bethere.co.uk [94.193.98.41]) by mx.google.com with ESMTPS id x14sm74611783wbs.0.2010.04.22.03.20.27 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 22 Apr 2010 03:20:28 -0700 (PDT) Message-ID: <4BD022EA.4030006@pidster.com> Date: Thu, 22 Apr 2010 11:20:26 +0100 From: Pid Reply-To: pid@pidster.com Organization: Pidster Inc User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 MIME-Version: 1.0 To: Tomcat Users List Subject: Re: standardize the URL References: <28287836.post@talk.nabble.com> <28324762.post@talk.nabble.com> <4BD00346.7070700@pidster.com> <28326093.post@talk.nabble.com> In-Reply-To: <28326093.post@talk.nabble.com> X-Enigmail-Version: 1.0.1 OpenPGP: id=62590808 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enigCBD30B18B8EB1D0FF807B101" --------------enigCBD30B18B8EB1D0FF807B101 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 22/04/2010 10:10, banto wrote: >=20 >=20 >=20 > Pid * wrote: >> >> On 22/04/2010 07:45, banto wrote: >>> >>> >>> >>> Gregor Schneider wrote: >>>> >>>> On Tue, Apr 20, 2010 at 12:54 PM, banto wrote: >>>>> >>>>> Hi, >>>>> >>>>> i know this can be a silly question but i have the following issue:= >>>>> >>>>> i want to call my web app with a standard URL as >>>>> http://host:port/myString >>>>> >>>> >>>> how does the url look like when you call your webb-app currently? >>>> >>>> how would you like the url to look like? >>>> >>>> rgds >>>> >>>> gregor >>>> --=20 >>>> just because you're paranoid, don't mean they're not after you... >>>> gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 >>>> gpgp-key available >>>> @ http://pgpkeys.pca.dfn.de:11371 >>>> @ http://pgp.mit.edu:11371/ >>>> skype:rc46fi >>>> >>>> --------------------------------------------------------------------= - >>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org >>>> For additional commands, e-mail: users-help@tomcat.apache.org >>>> >>>> >>>> >>> >>> >>> I explain better my problem, >>> >>> my webapp is in the folder: >>> >>> C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\istanc= eVar >>> >>> and i call it with >>> >>> http://localhost:8080/instanceVar/instance >>> >>> what i would like to do (also for others webapps) is to call it/them = as >>> >>> http://localhost:8080/instance >>> http://localhost:8080/webapp_2 >>> http://localhost:8080/webapp_3 >> >> Rename the webapp, from "instanceVar" to "ROOT". >> >>> or better >>> >>> http://localhost/instance >>> http://localhost/webapp_2 >>> http://localhost/webapp_3 >> >> Change the port in the Connector from 8080 to 80. >> >>> how can i get the 2 modes? >> >> Then add multiple mappings for each instance of the URL. >> >> >> OR >> >> Create the servlet and map it to a value also present in the >> welcome-file list of file names. >> >> http://localhost/instanceVar >> http://localhost/webapp_2 >> >> >> p >=20 > thank you g now it works. >=20 > However i understand the only way to do that is putting the webapps in = the > ROOT folder,right? If by webapp, you mean "Servlet". ROOT is a webapp in it's own right, it is not the same as the root directory of an HTTPD server. any .war file or directory (effectively an exploded .war file) you put in tomcat/webapps will be treated as an application. p --------------enigCBD30B18B8EB1D0FF807B101 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (Darwin) iQIVAwUBS9Ai6moM2OGpOvr9AQpvtQ/+O/VuVcFh9C/VE8+9wSTdtCW/AcdSZOD4 fYevXSQvmLj4Z/bgusFpyIXxYAXo+Hby6Au+Oguk66YumhUri3aq5aN6Z+60kWWQ Hx+48n0TTe1bq5ZoOpwE8QJq0bfBUgyrHMCfRMhYYjlkcQ3qwc8ehKbWAQBEZ89K dXw9TBSvlkjBsPpE44c4mEI3sYbgZAUb8Uk2pkfA/dg0nc64QwO/mcp77CW/a9ma 5dUfGzwOAAwE1OrFyOFJsf+ipZsjCbtOv5a8kXAmjtPGkazi0V7uf7nDrfcILWh4 Wi4W3jB7JNqSFXZ/x8c7GdvNuQYg2HQCw5JGXI8AwmNHWwYqw9HZGKU/PL26gAoI SMesB0RJUM9Z7JlD74Kfy9adFkkvdcAm+/4AzlZZl5Fumn6/Bx8mFOwM+cywJYEn Q+Y8Fh5by4U6XJWWZ5WL4Q00CENPjOfpXic3pyYe4+yhd5xR2mxDwhihSWlcg6Jf BHc+WuoKeIDBoNujYD54PCWYtBUZCM+KQ+XficKgLCZrwczqkZwkDf4rquQhCcKJ bgz67j1pF47FZgiswXdvPO7EwUSX/6ArSNuvXqWQzP0NRvXusipi+2L2LA5Wf8Ay UMypGGzvF5mNlbpHNmE8abfDNeSPExNEgvn6kk3vqDMhIeYQrIwA319eYUp5spw8 yxsNmSvEnHQ= =1AfZ -----END PGP SIGNATURE----- --------------enigCBD30B18B8EB1D0FF807B101--