The way to configure a virtual directory in Tomcat is to write an XML file that reads as follows:
<context path= "/www" docbase= "/var/www" debug= "0" reloadable= "true" crosscontext= "true" >
</Context>
where "path="/www "represents the name of the configured virtual directory," docbase= "/var/www" is the fact directory that the virtual directory points to. Save this file in the "Tomcat/conf/catalina/localhost" folder of the Tomcat installation directory with the file name Jsp.xml. Once saved, Tomcat will automatically update the configuration.
The naming convention for an XML file that configures a virtual directory is that the name of the virtual directory is the file name of the XML file, so that the name of the virtual directory is "/www", and the XML file name is called Www.xml
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/6F/36/wKioL1WU6_GBn4kRAAEh_NMwnHw524.jpg "title=" QQ picture 20150702153625.png "alt=" Wkiol1wu6_gbn4kraaeh_nmwnhw524.jpg "/>
This article is from "My World, I am the director." "Blog, be sure to keep this provenance http://biock.blog.51cto.com/4643304/1670173
Tomcat Settings Virtual directory