-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Chuck,

On 3/10/2011 2:11 PM, Caldarale, Charles R wrote:
>> From: Ari King [mailto:ari.brandeis.k...@gmail.com] 
>> Subject: Options for setting context path
> 
>> What options do I have for setting the context path, aside 
>> from naming the war file, i.e. "context-path-name.war", and
>> modifying the server.xml file?
> 
> Keep the .war file *outside* of Tomcat's directory structure, and place its 
> <Context> element in conf/Catalina/[host]/[app#url#path].xml.  Inside the 
> <Context> element, include a docBase attribute pointing to the location of 
> the .war file.
>  
>> What options do I have for setting the DEFAULT context, aside
>> from setting the directory name to ROOT?
> 
> If you don't want to name the directory (or .war file) ROOT, then follow the 
> procedure outlined above, where [app#url#path] is ROOT (case sensitive).
> 
>> How can I configure tomcat so that I can drop a war file 
>> into the webapps (or some virtual host) directory and
>> without changing its name have this (exploded or otherwise)
>> file be set as the default context?
> 
> You can't.  The easiest procedure in all cases is just to name the .war file 
> properly.

I'm always surprised at the unwillingness of some Tomcat users to just
name their files properly. I can't think of a single reasonable use case
where re-naming the file isn't an option.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk16o+MACgkQ9CaO5/Lv0PBHlwCffJJ4IDGm/449v3Z7q/UiadIg
/WQAoMK1SktjBbDZI7GQehdZM35is5tg
=Jx/6
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to