Tomcat Settings Virtual directory

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.