tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vicky <vicky007aggar...@yahoo.co.in>
Subject Re: overriden context root
Date Wed, 16 Oct 2013 15:21:20 GMT
Thanks Christopher,Chris,Andre for your inputs


vicky

From: Christopher Schultz <chris@christopherschultz.net>
To: Tomcat Users List <users@tomcat.apache.org> 
Sent: Wednesday, 16 October 2013 7:55 PM
Subject: Re: overriden context root


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Vicky,

On 10/16/13 6:27 AM, vicky wrote:
> I have added below entry in server.xml  to override the context
> root of my application i.e from /dummy  to /market.

As others have said, don't do this. 


> The problem is now the application is accessible via both context 
> roots i.e via /dummy & /market context roots but I want the 
> application to be accessible only via overridden context root i.e
> via /market only.
> 
> Kindly suggest how to do it.

You want to do one of two things:

1. Just rename dummy.war to market.war. I don't know why so many
people resist the simplest possible way to do this.

2. Move dummy.war outside of Tomcat's auto-deployment directory (which
defaults to CATALINA_BASE/webapps/). Put your <Context> element into
the file CATALINA_BASE/conf/[service]/[host]/market.xml and point
docBase to where you put your WAR file. If you are using the default
service name and "localhost" as your <Host>, then your context file
would be here: CATALINA_BASE/conf/Catalina/localhost/market.xml.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.14 (Darwin)
Comment: GPGTools - http://gpgtools.org/
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJSXqHEAAoJEBzwKT+lPKRYILMP/R0jKGhSeX71dkQO9hY44Zl6
Wo+5LSOZo/Vz+9mInW/UyOU/eYnP9KEMAExHJYgDaf1I1mWcguo9PvY1tBG8R6u/
D+2RvmqznUJzcrKzt2MT46KEKRkMKgRK8lCDxdFs+9iBg0POPEw+8vBv5LZYoMKU
nbVGa2kdWrQB21o/Uyhl51BGINKCD/oifFbqQX4HWiDZFcBARDDt6GzrworgDIrQ
DtwMtday5RQtF7RkrXaTs6j73gq7jFQnqB9rSCxmazkBAaBAab9GtAuXaLtGn1MX
oG9ZhFB9jVYJ8Br2XeBpUeizMsTI/hb6LoEDmvg4Fu979SbgfSi2Z8acyggbIGeK
FaUzVzmCQlK/jRB4c8m1RL+DGHZwux3W2LTQj0BdIb6TgbcHRTjA4AUkoH8jSLBQ
CIFREVkrwRD79LmFkpqjGiHYYKUE8T8G+0JZ45XrwqI6cxO4fMUx2i7RDUzlaLsv
bhtfzad2dpJuRn12stVDvFWyEYGTQEFtz9Y1z+37pBaap2owojZSbxqjbeNvls2R
jo48QQ4IPRZCEyv476rdL3KxlSWBsud8m2oxgjJheCl3CFSu5909rfJGRoYOCrxG
eAeunF5wQ7gOW6bV/jVJEmdZXYRXml83UV9LWKa++zA/F7R73VN/+aB85F1pfS4M
guy19tHu3F+Ng3gy24ho
=iVZh
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org 
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message