You want to set webapp application
as the default web app (i.e. access it directly via http://localhost:8080/), then you can set the path as ""
in Context
within <Host>
in server.xml
. This should work
<Context docBase="/var/lib/tomcat6/webapps/application/" path="" reloadable="true>
From the Tomcat docs,
If you specify a context path of an
empty string (""), you are defining
the default web application for this
Host, which will process all requests
not assigned to other Contexts
Note: From the Tomcat 6 docs http://tomcat.apache.org/tomcat-6.0-doc/config/context.html#Introduction it is recommended not to put this in server.xml since you need to restart Tomcat for any changes.
The default web application may be
defined by using a file called
ROOT.xml
but i have not tried that option myself